40#ifndef BLOCXX_INETSERVERSOCKET_HPP_INCLUDE_GUARD_
41#define BLOCXX_INETSERVERSOCKET_HPP_INCLUDE_GUARD_
42#include "blocxx/BLOCXX_config.h"
99 void doListen(UInt16 port,
int queueSize=10,
111 bool reuseAddr=
true);
133#pragma warning (push)
134#pragma warning (disable: 4251)
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
static const char *const ALL_LOCAL_ADDRESSES
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.
IntrusiveReference< SSLServerCtx > SSLServerCtxRef