Home C-Bits Package Documentation Project Page

Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Socket.h File Reference

#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <cbits/SocketException.h>
#include <cbits/Timing.h>
#include <cbits/CriticalSection.h>
#include <cbits/sockstreambuf.h>
#include <cbits/ServerSocket.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <cbits/portable_mutex.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.

Namespaces

namespace  cbits

Defines

#define EXPORT
#define ERRNO   errno
#define CLOSE_SOCKET(s)   ::close((s))
#define GET_SOCKET_ERROR()   errno
#define STRERROR(a)   strerror(a)
#define SOCKET_IS_VALID(a)   (0<(a)?true:false)
#define SOCKET_EINTR   EINTR
#define SOCKET_EAGAIN   EAGAIN
#define SOCKET_ECONNRESET   ECONNRESET
#define elog   *(this->getLogger())<<"ERROR "<<cbits::Socket::DateTime()<<" {"<<SOCKET_GET_THREADID<<"} "<<__FILE__<<" [line "<<__LINE__<<"]: "
 Error logging output stream. More...

#define trace

Functions

std::ostream & operator<< (std::ostream &os, const cbits::Socket::DateTime &dt)
 \function Stream insertion operator used to insert date-time stamp into an output stream. More...


Define Documentation

#define CLOSE_SOCKET      ::close((s))
 

#define elog   *(this->getLogger())<<"ERROR "<<cbits::Socket::DateTime()<<" {"<<SOCKET_GET_THREADID<<"} "<<__FILE__<<" [line "<<__LINE__<<"]: "
 

Error logging output stream.

#define ERRNO   errno
 

#define EXPORT
 

 
#define GET_SOCKET_ERROR      errno
 

#define SOCKET_EAGAIN   EAGAIN
 

#define SOCKET_ECONNRESET   ECONNRESET
 

#define SOCKET_EINTR   EINTR
 

#define SOCKET_IS_VALID      (0<(a)?true:false)
 

#define STRERROR      strerror(a)
 

#define trace
 

Value:

do \
    {\
          \
    }while(false)


Function Documentation

std::ostream& operator<< std::ostream &    os,
const cbits::Socket::DateTime   dt
 

\function Stream insertion operator used to insert date-time stamp into an output stream.


Generated by
doxygen
Hosted by
SourceForge