From 1647f4b4f9ebef8b938222b1f48d9a15cc262e97 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 25 Mar 2020 20:48:19 +0100 Subject: clean-up the mess Signed-off-by: Toni Uhlig --- .../CSFML-2.1/doc/html/IpAddress_8h.htm | 361 +++++++++++++++++++++ 1 file changed, 361 insertions(+) create mode 100755 h1z1/libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/IpAddress_8h.htm (limited to 'h1z1/libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/IpAddress_8h.htm') diff --git a/h1z1/libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/IpAddress_8h.htm b/h1z1/libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/IpAddress_8h.htm new file mode 100755 index 0000000..b0165d5 --- /dev/null +++ b/h1z1/libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/IpAddress_8h.htm @@ -0,0 +1,361 @@ + + + + CSFML - C binding of the Simple and Fast Multimedia Library + + + + + + + +
+ +
+
IpAddress.h File Reference
+
+
+
#include <SFML/Network/Export.h>
+#include <SFML/System/Time.h>
+
+

Go to the source code of this file.

+ + + + + +

+Data Structures

struct  sfIpAddress
 Encapsulate an IPv4 network address. More...
 
+ + + + + + + + + + + + + + + + + + + + + + +

+Functions

CSFML_NETWORK_API sfIpAddress sfIpAddress_fromString (const char *address)
 Create an address from a string.
 
CSFML_NETWORK_API sfIpAddress sfIpAddress_fromBytes (sfUint8 byte0, sfUint8 byte1, sfUint8 byte2, sfUint8 byte3)
 Create an address from 4 bytes.
 
CSFML_NETWORK_API sfIpAddress sfIpAddress_fromInteger (sfUint32 address)
 Construct an address from a 32-bits integer.
 
CSFML_NETWORK_API void sfIpAddress_toString (sfIpAddress address, char *string)
 Get a string representation of an address.
 
CSFML_NETWORK_API sfUint32 sfIpAddress_toInteger (sfIpAddress address)
 Get an integer representation of the address.
 
CSFML_NETWORK_API sfIpAddress sfIpAddress_getLocalAddress (void)
 Get the computer's local address.
 
CSFML_NETWORK_API sfIpAddress sfIpAddress_getPublicAddress (sfTime timeout)
 Get the computer's public address.
 
+ + + + + + + + + + +

+Variables

CSFML_NETWORK_API const sfIpAddress sfIpAddress_None
 Empty object that represents invalid addresses.
 
CSFML_NETWORK_API const sfIpAddress sfIpAddress_LocalHost
 Local host IP address (127.0.0.1, or "localhost")
 
CSFML_NETWORK_API const sfIpAddress sfIpAddress_Broadcast
 UDP broadcast address (255.255.255.255)
 
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CSFML_NETWORK_API sfIpAddress sfIpAddress_fromBytes (sfUint8 byte0,
sfUint8 byte1,
sfUint8 byte2,
sfUint8 byte3 
)
+
+ +

Create an address from 4 bytes.

+

Calling sfIpAddress_fromBytes(a, b, c, d) is equivalent to calling sfIpAddress_fromString("a.b.c.d"), but safer as it doesn't have to parse a string to get the address components.

+
Parameters
+ + + + + +
byte0First byte of the address
byte1Second byte of the address
byte2Third byte of the address
byte3Fourth byte of the address
+
+
+
Returns
Resulting address
+ +
+
+ +
+
+ + + + + + + + +
CSFML_NETWORK_API sfIpAddress sfIpAddress_fromInteger (sfUint32 address)
+
+ +

Construct an address from a 32-bits integer.

+

This function uses the internal representation of the address directly. It should be used for optimization purposes, and only if you got that representation from sfIpAddress_ToInteger.

+
Parameters
+ + +
address4 bytes of the address packed into a 32-bits integer
+
+
+
Returns
Resulting address
+ +
+
+ +
+
+ + + + + + + + +
CSFML_NETWORK_API sfIpAddress sfIpAddress_fromString (const char * address)
+
+ +

Create an address from a string.

+

Here address can be either a decimal address (ex: "192.168.1.56") or a network name (ex: "localhost").

+
Parameters
+ + +
addressIP address or network name
+
+
+
Returns
Resulting address
+ +
+
+ +
+
+ + + + + + + + +
CSFML_NETWORK_API sfIpAddress sfIpAddress_getLocalAddress (void )
+
+ +

Get the computer's local address.

+

The local address is the address of the computer from the LAN point of view, i.e. something like 192.168.1.56. It is meaningful only for communications over the local network. Unlike sfIpAddress_getPublicAddress, this function is fast and may be used safely anywhere.

+
Returns
Local IP address of the computer
+ +
+
+ +
+
+ + + + + + + + +
CSFML_NETWORK_API sfIpAddress sfIpAddress_getPublicAddress (sfTime timeout)
+
+ +

Get the computer's public address.

+

The public address is the address of the computer from the internet point of view, i.e. something like 89.54.1.169. It is necessary for communications over the world wide web. The only way to get a public address is to ask it to a distant website; as a consequence, this function depends on both your network connection and the server, and may be very slow. You should use it as few as possible. Because this function depends on the network connection and on a distant server, you may use a time limit if you don't want your program to be possibly stuck waiting in case there is a problem; use 0 to deactivate this limit.

+
Parameters
+ + +
timeoutMaximum time to wait
+
+
+
Returns
Public IP address of the computer
+ +
+
+ +
+
+ + + + + + + + +
CSFML_NETWORK_API sfUint32 sfIpAddress_toInteger (sfIpAddress address)
+
+ +

Get an integer representation of the address.

+

The returned number is the internal representation of the address, and should be used for optimization purposes only (like sending the address through a socket). The integer produced by this function can then be converted back to a sfIpAddress with sfIpAddress_FromInteger.

+
Parameters
+ + +
addressAddress object
+
+
+
Returns
32-bits unsigned integer representation of the address
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_NETWORK_API void sfIpAddress_toString (sfIpAddress address,
char * string 
)
+
+ +

Get a string representation of an address.

+

The returned string is the decimal representation of the IP address (like "192.168.1.56"), even if it was constructed from a host name.

+
Parameters
+ + +
addressAddress object
+
+
+
Returns
String representation of the address
+ +
+
+

Variable Documentation

+ +
+
+ + + + +
CSFML_NETWORK_API const sfIpAddress sfIpAddress_Broadcast
+
+ +

UDP broadcast address (255.255.255.255)

+ +

Definition at line 61 of file IpAddress.h.

+ +
+
+ +
+
+ + + + +
CSFML_NETWORK_API const sfIpAddress sfIpAddress_LocalHost
+
+ +

Local host IP address (127.0.0.1, or "localhost")

+ +

Definition at line 55 of file IpAddress.h.

+ +
+
+ +
+
+ + + + +
CSFML_NETWORK_API const sfIpAddress sfIpAddress_None
+
+ +

Empty object that represents invalid addresses.

+ +

Definition at line 49 of file IpAddress.h.

+ +
+
+
+ + + + -- cgit v1.2.3