DTS Application Library
0.2.3
Application library containing referenced objects and interfaces to common libraries
|
Support for building with mingw32 (Requires XP SP1+) More...
Files | |
file | winiface.cpp |
Various routines for supporting Windows also requires C++. | |
Data Structures | |
struct | ifinfo |
Data structure containing interface information. More... | |
Functions | |
const char * | inet_ntop (int af, const void *src, char *dest, socklen_t size) |
Win32 implementation of inet_ntop. More... | |
struct ifinfo * | get_ifinfo (const char *iface) |
Return interface info for a specified interface. More... | |
Support for building with mingw32 (Requires XP SP1+)
struct ifinfo* get_ifinfo | ( | const char * | iface | ) |
Return interface info for a specified interface.
iface | Interface name to return. |
Definition at line 83 of file winiface.cpp.
References ifinfo::idx, ifinfo::ifaddr, ifinfo::ipv4addr, ifinfo::ipv6addr, objalloc(), score_ipv4(), score_ipv6(), and strlenzero().
Referenced by mcast_socket().
const char* inet_ntop | ( | int | af, |
const void * | src, | ||
char * | dest, | ||
socklen_t | size | ||
) |
Win32 implementation of inet_ntop.
af | Address family only AF_INET or AF_INET6 are supported. |
src | A pointer to in_addr or in6_addr. |
dest | A buffer to place the IP address in. |
size | the length of the buffer. |
Definition at line 43 of file winiface.cpp.
References sockstruct::sa, sockstruct::sa4, sockstruct::sa6, and sockstruct::ss.
Referenced by score_ipv4(), score_ipv6(), snprintf_pkt(), and sockaddr2ip().