|
Simple tools for networking / objects in plain C Snapshot
|
#include <netinet/in.h>#include <cutils/base.h>Go to the source code of this file.
Classes | |
| struct | IPADDRESS |
| union | SOCKADDR |
Functions | |
| int | IPADDRESS_any (IPADDRESS *addr, int family) |
| int | IPADDRESS_loopback (IPADDRESS *addr, int family) |
| void | IPADDRESS_broadcast_ipv4 (IPADDRESS *addr) |
| int | IPADDRESS_parse_string (IPADDRESS *addr, const char *str) |
| char * | IPADDRESS_to_string (IPADDRESS *addr) |
| M_INLINE int | IPADDRESS_family (IPADDRESS *addr) |
| int | SOCKADDR_init (SOCKADDR *saddr, IPADDRESS *addr, uint16_t port) |
| initialise ip address / port pair. | |
| 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. | |
| M_INLINE struct sockaddr * | SOCKADDR_saddr (SOCKADDR *addr) |
| socklen_t | SOCKADDR_length (SOCKADDR *addr) |
| return address of address / port pair (depends on addressing family) | |
| char * | SOCKADDR_to_string (SOCKADDR *saddr) |
| formats objec as string | |
1.7.4