libcommonc++  0.7
Network.c++ File Reference
#include "commonc++/Network.h++"
#include "commonc++/ByteOrder.h++"
#include "commonc++/DynamicArray.h++"
#include "commonc++/System.h++"
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <cstring>
#include <cerrno>
#include <algorithm>
Include dependency graph for Network.c++:

Namespaces

 ccxx
 

Macros

#define __MAKE_ADDR(A)
 

Functions

static int copyNameArray (char **src, char *buf, size_t bufsz)
 
static int copyAddrArray (char **src, char *buf, size_t addrsz, size_t bufsz)
 
static struct hostent * copyStructHostent (struct hostent *rhe, struct hostent *result, char *buffer, int buflen)
 
static struct servent * copyStructServent (struct servent *rse, struct servent *result, char *buffer, int buflen)
 

Variables

static const char * __protoNames [] = { NULL, "tcp", "udp" }
 

Macro Definition Documentation

◆ __MAKE_ADDR

#define __MAKE_ADDR (   A)
Value:
(ByteOrder::networkToHost(static_cast<uint32_t>( \
((struct sockaddr_in *)(A))->sin_addr.s_addr)))