18#ifndef _LOG4CXX_HELPERS_SERVER_SOCKET_H
19#define _LOG4CXX_HELPERS_SERVER_SOCKET_H
36 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(ServerSocketPrivate, m_priv)
60#if LOG4CXX_ABI_VERSION <= 15
61 static ServerSocketUniquePtr
create(
int port);
62 static ServerSocketUniquePtr
create(
int port,
bool reuseAddress,
const LogString& hostname);
64 static ServerSocketUniquePtr
create(
int port,
bool reuseAddress =
false,
const LogString& hostname = {});
Definition serversocket.h:34
ServerSocket(LOG4CXX_PRIVATE_PTR(ServerSocketPrivate) priv)
int getSoTimeout() const
Retrive setting for SO_TIMEOUT.
static ServerSocketUniquePtr create(int port, bool reuseAddress, const LogString &hostname)
void setSoTimeout(int timeout)
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
virtual SocketPtr accept()=0
Listens for a connection to be made to this socket and accepts it.
virtual void close()
Closes this socket.
static ServerSocketUniquePtr create(int port)
LOG4CXX_UNIQUE_PTR_DEF(DatagramSocket)
std::basic_string< logchar > LogString
Definition logstring.h:60