23 #ifndef __ccxx_Network_hxx 24 #define __ccxx_Network_hxx 68 static uint_t getInterfaces(std::vector<NetworkInterface>& list);
94 static int getHostByName(
const char* name,
struct hostent* ret,
95 char* buffer,
int buflen,
struct hostent** result,
98 static int getHostByAddr(
const char* addr,
int length,
int type,
99 struct hostent* ret,
char* buffer,
int buflen,
100 struct hostent** result,
int* h_errnop);
102 static int getServByName(
const char* name,
const char* proto,
103 struct servent* ret,
char* buffer,
int buflen,
104 struct servent** result);
106 static int getServByPort(
int port,
const char* proto,
struct servent* ret,
107 char* buffer,
int buflen,
struct servent** result);
112 #endif // __ccxx_Network_hxx TCP protocol.
Definition: Network.h++:44
UDP protocol.
Definition: Network.h++:46
Any (unspecified) protocol.
Definition: Network.h++:42
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
#define COMMONCPP_API
Definition: Common.h++:126
NetProtocol
Network protocol types.
Definition: Network.h++:40
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
Network-related routines.
Definition: Network.h++:54
An IPv4 Internet address.
Definition: InetAddress.h++:64
Definition: AllocationMap.c++:25