38#include "blocxx/BLOCXX_config.h"
74 return m_impl->accept(timeout);
81 m_impl->doListen(port, isSSL, queueSize, listenAddr, reuseAddr);
88 m_impl->doListen(port, queueSize, listenAddr, reuseAddr);
95 m_impl->doListenUDS(filename, queueSize, reuseAddr);
108 return m_impl->getLocalAddress();
120 return m_impl->getSelectObj();
void doListen(UInt16 port, SocketFlags::ESSLFlag isSSL, int queueSize=10, const String &listenAddr=SocketAddress::ALL_LOCAL_ADDRESSES, SocketFlags::EReuseAddrFlag reuseAddr=SocketFlags::E_REUSE_ADDR)
Start listening on a port.
SocketAddress getLocalAddress()
Return the address of the local host.
Select_t getSelectObj() const
Socket accept(int timeoutSecs=-1) BLOCXX_DEPRECATED
Accept a connection to the server socket.
ServerSocket(SSLServerCtxRef sslCtx)
Allocate a new Inet Server Socket.
void close()
Close the listen socket.
SocketHandle_t getfd() const
Get the file descriptor of the listen socket.
IntrusiveReference< ServerSocketImpl > m_impl
This String class is an abstract data type that represents as NULL terminated string of characters.
A timeout can be absolute, which means that it will happen at the specified DateTime.
static Timeout relative(float seconds)