Apache Log4cxx  Version 1.5.0
Loading...
Searching...
No Matches
log4cxx::helpers::ServerSocket Class Referenceabstract

#include <serversocket.h>

Public Member Functions

virtual ~ServerSocket ()
virtual SocketPtr accept ()=0
 Listens for a connection to be made to this socket and accepts it.
virtual void close ()
 Closes this socket.
int getSoTimeout () const
 Retrive setting for SO_TIMEOUT.
void setSoTimeout (int timeout)
 Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.

Static Public Member Functions

static ServerSocketUniquePtr create (int port)
static ServerSocketUniquePtr create (int port, bool reuseAddress, const LogString &hostname)

Protected Member Functions

 ServerSocket (LOG4CXX_PRIVATE_PTR(ServerSocketPrivate) priv)

Constructor & Destructor Documentation

◆ ServerSocket()

log4cxx::helpers::ServerSocket::ServerSocket ( LOG4CXX_PRIVATE_PTR(ServerSocketPrivate) priv)
protected

◆ ~ServerSocket()

virtual log4cxx::helpers::ServerSocket::~ServerSocket ( )
virtual

Member Function Documentation

◆ accept()

virtual SocketPtr log4cxx::helpers::ServerSocket::accept ( )
pure virtual

Listens for a connection to be made to this socket and accepts it.

◆ close()

virtual void log4cxx::helpers::ServerSocket::close ( )
virtual

Closes this socket.

◆ create() [1/2]

ServerSocketUniquePtr log4cxx::helpers::ServerSocket::create ( int port)
static

◆ create() [2/2]

ServerSocketUniquePtr log4cxx::helpers::ServerSocket::create ( int port,
bool reuseAddress,
const LogString & hostname )
static

◆ getSoTimeout()

int log4cxx::helpers::ServerSocket::getSoTimeout ( ) const

Retrive setting for SO_TIMEOUT.

◆ setSoTimeout()

void log4cxx::helpers::ServerSocket::setSoTimeout ( int timeout)

Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.


The documentation for this class was generated from the following file: