Simple tools for networking / objects in plain C Snapshot
|
Go to the source code of this file.
Functions | |
int | IPADDRESS_any (IPADDRESS *addr, int family) |
void | IPADDRESS_broadcast_ipv4 (IPADDRESS *addr) |
int | IPADDRESS_loopback (IPADDRESS *addr, int family) |
int | IPADDRESS_parse_string (IPADDRESS *addr, const char *str) |
char * | IPADDRESS_to_string (IPADDRESS *addr) |
int | SOCKADDR_init (SOCKADDR *saddr, IPADDRESS *addr, uint16_t port) |
initialise ip address / port pair. | |
socklen_t | SOCKADDR_length (SOCKADDR *addr) |
return address of address / port pair (depends on addressing family) | |
int | SOCKADDR_family (SOCKADDR *addr) |
return addressing family of object (AF_INET or AF_INET6) | |
void * | SOCKADDR_ipaddr (SOCKADDR *addr) |
return address of ip address portion of address / port pair. | |
char * | SOCKADDR_to_string (SOCKADDR *saddr) |
formats objec as string |