ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

socket.h File Reference
#include <ucommon/timers.h>
#include <ucommon/linked.h>
#include <ucommon/string.h>
#include <ucommon/typeref.h>
#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 dependency graph for socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  hostaddr_internet
struct  sockaddr_internet
struct  sockaddr_storage
class  ucommon::cidr
class  ucommon::Socket
class  ucommon::Socket::address
class  ucommon::ListenSocket
class  ucommon::TCPServer
class  ucommon::linked_sockaddr_operations
class  ucommon::linked_pointer< sockaddr_struct >
class  ucommon::Type::HostAddress
class  ucommon::Type::SockAddress
class  ucommon::Type::InetAddress




#define IPTOS_LOWDELAY   0x10
#define IPTOS_THROUGHPUT   0x08
#define IPTOS_RELIABILITY   0x04
#define IPTOS_MINCOST   0x02
#define SOCK_DCCP   6
#define IPPROTO_DCCP   23
#define SOL_DCCP   269
#define DCCP_SOCKOPT_CCID   13


typedef struct sockaddr * sockaddr_t
typedef struct sockaddr sockaddr_struct
typedef TCPServer ucommon::tcpserv_t


struct addrinfoucommon::addrinfo (Socket::address &address)
const struct sockaddr * ucommon::addr (Socket::address &address)
bool ucommon::eq (const struct sockaddr *s1, const struct sockaddr *s2)
bool ucommon::eq (const struct sockaddr_storage *s1, const struct sockaddr_storage *s2)
bool ucommon::eq_host (const struct sockaddr *s1, const struct sockaddr *s2)
bool ucommon::eq_subnet (const struct sockaddr *s1, const struct sockaddr *s2)
String ucommon::str (Socket &so, size_t size)

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.

Macro Definition Documentation



Definition at line 151 of file socket.h.


#define DCCP_SOCKOPT_CCID   13

Definition at line 152 of file socket.h.



Definition at line 154 of file socket.h.



Definition at line 153 of file socket.h.



Definition at line 81 of file socket.h.


#define IPPROTO_DCCP   23

Definition at line 144 of file socket.h.


#define IPTOS_LOWDELAY   0x10

Definition at line 72 of file socket.h.


#define IPTOS_MINCOST   0x02

Definition at line 75 of file socket.h.


#define IPTOS_RELIABILITY   0x04

Definition at line 74 of file socket.h.


#define IPTOS_THROUGHPUT   0x08

Definition at line 73 of file socket.h.


#define SOCK_DCCP   6

Definition at line 140 of file socket.h.


#define SOL_DCCP   269

Definition at line 148 of file socket.h.

Typedef Documentation

◆ sockaddr_struct

typedef struct sockaddr sockaddr_struct

Definition at line 86 of file socket.h.

◆ sockaddr_t

typedef struct sockaddr* sockaddr_t

Definition at line 84 of file socket.h.