|
blocxx
|
#include <ServerSocket.hpp>
Private Attributes | |
| IntrusiveReference< ServerSocketImpl > | m_impl |
Additional Inherited Members | |
Protected Member Functions inherited from BLOCXX_NAMESPACE::IntrusiveCountableBase | |
| IntrusiveCountableBase () | |
| IntrusiveCountableBase (const IntrusiveCountableBase &) | |
| IntrusiveCountableBase & | operator= (const IntrusiveCountableBase &) |
| virtual | ~IntrusiveCountableBase () |
Definition at line 52 of file ServerSocket.hpp.
| BLOCXX_NAMESPACE::ServerSocket::ServerSocket | ( | SSLServerCtxRef | sslCtx | ) |
Allocate a new Inet Server Socket.
| isSSL | is the Server Socket an SSL socket? |
Definition at line 46 of file ServerSocket.cpp.
| BLOCXX_NAMESPACE::ServerSocket::ServerSocket | ( | SocketFlags::ESSLFlag | isSSL = SocketFlags::E_NOT_SSL | ) |
Allocate a new Inet Server Socket.
| isSSL | is the Server Socket an SSL socket? |
Definition at line 52 of file ServerSocket.cpp.
| BLOCXX_NAMESPACE::ServerSocket::ServerSocket | ( | const ServerSocket & | arg | ) |
Copy ctor.
Definition at line 58 of file ServerSocket.cpp.
Accept a connection to the server socket.
| timeoutSecs | the timeout |
Definition at line 72 of file ServerSocket.cpp.
References m_impl, and BLOCXX_NAMESPACE::operator==().
Accept a connection to the server socket.
| timeoutSecs | the timeout |
Definition at line 66 of file ServerSocket.cpp.
References accept(), BLOCXX_NAMESPACE::operator==(), and BLOCXX_NAMESPACE::Timeout::relative().
Referenced by accept().
| void BLOCXX_NAMESPACE::ServerSocket::close | ( | ) |
Close the listen socket.
| SocketException |
Definition at line 100 of file ServerSocket.cpp.
References m_impl.
| void BLOCXX_NAMESPACE::ServerSocket::doListen | ( | const String & | filename, |
| int | queueSize = 10, | ||
| bool | reuseAddr = true ) |
Start listening on a Unix Domain Socket.
| filename | The filename for the unix domain socket |
| queueSize | the size of the listen queue |
| SocketException |
Definition at line 93 of file ServerSocket.cpp.
References m_impl, and BLOCXX_NAMESPACE::operator==().
| void BLOCXX_NAMESPACE::ServerSocket::doListen | ( | UInt16 | port, |
| int | queueSize = 10, | ||
| const String & | listenAddr = SocketAddress::ALL_LOCAL_ADDRESSES, | ||
| SocketFlags::EReuseAddrFlag | reuseAddr = SocketFlags::E_REUSE_ADDR ) |
Start listening on a port.
| port | The port to listen on |
| queueSize | the size of the listen queue |
| allInterfaces | do we listen on all interfaces? |
| SocketException |
Definition at line 85 of file ServerSocket.cpp.
References m_impl, and BLOCXX_NAMESPACE::operator==().
| void BLOCXX_NAMESPACE::ServerSocket::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.
| port | The port to listen on |
| isSSL | is the Server Socket an SSL socket? |
| queueSize | the size of the listen queue |
| allInterfaces | do we listen on all interfaces? |
| SocketException |
Definition at line 78 of file ServerSocket.cpp.
References m_impl, and BLOCXX_NAMESPACE::operator==().
| SocketHandle_t BLOCXX_NAMESPACE::ServerSocket::getfd | ( | ) | const |
Get the file descriptor of the listen socket.
Definition at line 112 of file ServerSocket.cpp.
References m_impl.
| SocketAddress BLOCXX_NAMESPACE::ServerSocket::getLocalAddress | ( | ) |
Return the address of the local host.
Definition at line 106 of file ServerSocket.cpp.
References m_impl.
|
virtual |
Implements BLOCXX_NAMESPACE::SelectableIFC.
Definition at line 118 of file ServerSocket.cpp.
References m_impl.
|
private |
Definition at line 137 of file ServerSocket.hpp.
Referenced by accept(), close(), doListen(), doListen(), doListen(), getfd(), getLocalAddress(), and getSelectObj().