DDraceNetwork Docs
|
Modules | |
Network-UDP | |
Network-TCP | |
Network-Unix-Sockets | |
Classes | |
struct | NETADDR |
Typedefs | |
typedef int | UNIXSOCKET |
typedef struct sockaddr_un | UNIXSOCKETADDR |
typedef struct NETSOCKET_INTERNAL * | NETSOCKET |
typedef struct NETADDR | NETADDR |
Functions | |
void | net_init () |
int | net_addr_comp (const NETADDR *a, const NETADDR *b) |
int | net_addr_comp_noport (const NETADDR *a, const NETADDR *b) |
bool | net_addr_str (const NETADDR *addr, char *string, int max_length, int add_port) |
typedef struct NETSOCKET_INTERNAL* NETSOCKET |
typedef int UNIXSOCKET |
typedef struct sockaddr_un UNIXSOCKETADDR |
Compares two network addresses.
a | Address to compare |
b | Address to compare to. |
< 0
- Address a is less than address b 0
- Address a is equal to address b > 0
- Address a is greater than address b Compares two network addresses ignoring port.
a | Address to compare |
b | Address to compare to. |
< 0
- Address a is less than address b 0
- Address a is equal to address b > 0
- Address a is greater than address b bool net_addr_str | ( | const NETADDR * | addr, |
char * | string, | ||
int | max_length, | ||
int | add_port | ||
) |
Turns a network address into a representative string.
addr | Address to turn into a string. |
string | Buffer to fill with the string. |
max_length | Maximum size of the string. |
add_port | add port to string or not |
void net_init | ( | ) |
Initiates network functionality.