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

namespace  ccxx

Defines

#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" }

Define Documentation

#define __MAKE_ADDR (  ) 
Value:
(ByteOrder::networkToHost(static_cast<uint32_t>(                      \
                              ((struct sockaddr_in *)&(A))->sin_addr.s_addr)))
Generated on Sat Nov 26 16:49:08 2011 for libcommonc++ by  doxygen 1.6.3