ucommon/socket.h File Reference

Common socket class and address manipulation. More...

#include <unistd.h>
#include <sys/socket.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <stdio.h>
#include <ucommon/timers.h>

Include dependency graph for socket.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Data Structures

struct  hostaddr_internet
 An object that holds ipv4 or ipv6 binary encoded host addresses. More...
class  ucc::cidr
 A class to hold internet segment routing rules. More...
class  ucc::Socket
 A generic socket base class. More...
class  ucc::Socket::Socket::address
 A generic socket address class. More...
class  ucc::ListenSocket
 A bound socket used to listen for inbound socket connections. More...

Namespaces

namespace  ucc
 Common namespace for all ucommon objects.

Defines

#define IPTOS_LOWDELAY   0x10
#define IPTOS_THROUGHPUT   0x08
#define IPTOS_RELIABILITY   0x04
#define IPTOS_MINCOST   0x02
#define DEFAULT_FAMILY   AF_UNSPEC
#define SOL_DCCP   269
#define DCCP_SOCKOPT_AVAILABLE_CCIDS   12
#define DCCP_SOCKOPT_CCID   13
#define DCCP_SOCKOPT_TX_CCID   14
#define DCCP_SOCKOPT_RX_CCID   15

Typedefs

typedef struct hostaddr_internet inethostaddr_t
 An object that holds ipv4 or ipv6 binary encoded host addresses.
typedef struct sockaddr_internet inetsockaddr_t
typedef Socket ucc::socket
 A convenience class for socket.

Functions

struct addrinfo * ucc::addrinfo (socket::address &address)
 A convenience function to convert a socket address list into an addrinfo.
struct sockaddr * ucc::addr (socket::address &address)
 A convenience function to convert a socket address list into a socket address.


Detailed Description

Common socket class and address manipulation.

This offers a common socket base class that exposes socket functionality based on what the target platform supports. Support for multicast, IPV6 addressing, and manipulation of cidr policies are all supported here.

Definition in file socket.h.


Generated on Wed May 13 09:18:01 2009 for UCommon by  doxygen 1.5.8