Go to the documentation of this file.
38 #include "blocxx/BLOCXX_config.h"
48 ,
m_impl(new ServerSocketImpl(sslCtx))
54 ,
m_impl(new ServerSocketImpl(isSSL))
59 : IntrusiveCountableBase()
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();
Socket accept(int timeoutSecs=-1) BLOCXX_DEPRECATED
Accept a connection to the server socket.
IntrusiveReference< ServerSocketImpl > m_impl
SocketHandle_t getfd() const
Get the file descriptor of the listen socket.
This String class is an abstract data type that represents as NULL terminated string of characters.
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.
static Timeout relative(float seconds)
void close()
Close the listen socket.
IntrusiveReference< SSLServerCtx > SSLServerCtxRef
ServerSocket(SSLServerCtxRef sslCtx)
Allocate a new Inet Server Socket.
Select_t getSelectObj() const