#include <OW_ServerSocket.hpp>
Inheritance diagram for OW_NAMESPACE::ServerSocket:
Public Member Functions | ||||
ServerSocket (SSLServerCtxRef sslCtx) | ||||
Allocate a new Inet Server Socket. | ||||
ServerSocket (SocketFlags::ESSLFlag isSSL=SocketFlags::E_NOT_SSL) | ||||
Allocate a new Inet Server Socket. | ||||
ServerSocket (const ServerSocket &arg) | ||||
Copy ctor. | ||||
Socket | accept (int timeoutSecs=-1) | |||
Accept a connection to the server socket. | ||||
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. | ||||
void | 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. | ||||
void | doListen (const String &filename, int queueSize=10, bool reuseAddr=true) | |||
Start listening on a Unix Domain Socket. | ||||
void | close () | |||
Close the listen socket
| ||||
SocketAddress | getLocalAddress () | |||
Return the address of the local host. | ||||
SocketHandle_t | getfd () const | |||
Get the file descriptor of the listen socket. | ||||
Select_t | getSelectObj () const | |||
Private Attributes | ||||
IntrusiveReference< ServerSocketImpl > | m_impl |
Definition at line 49 of file OW_ServerSocket.hpp.
|
Allocate a new Inet Server Socket.
Definition at line 45 of file OW_ServerSocket.cpp. |
|
Allocate a new Inet Server Socket.
Definition at line 51 of file OW_ServerSocket.cpp. |
|
Copy ctor.
Definition at line 57 of file OW_ServerSocket.cpp. |
|
Accept a connection to the server socket.
Definition at line 62 of file OW_ServerSocket.cpp. References m_impl. |
|
Close the listen socket
Definition at line 90 of file OW_ServerSocket.cpp. References m_impl. |
|
Start listening on a Unix Domain Socket.
Definition at line 83 of file OW_ServerSocket.cpp. References m_impl. |
|
Start listening on a port.
Definition at line 75 of file OW_ServerSocket.cpp. References m_impl. |
|
Start listening on a port.
Definition at line 68 of file OW_ServerSocket.cpp. References m_impl. |
|
Get the file descriptor of the listen socket.
Definition at line 102 of file OW_ServerSocket.cpp. References m_impl. |
|
Return the address of the local host.
Definition at line 96 of file OW_ServerSocket.cpp. References m_impl. |
|
Implements OW_NAMESPACE::SelectableIFC. Definition at line 108 of file OW_ServerSocket.cpp. References m_impl. |
|
Definition at line 128 of file OW_ServerSocket.hpp. Referenced by accept(), close(), doListen(), getfd(), getLocalAddress(), and getSelectObj(). |