#include <ServerSocket.h>
Public Types | |
typedef Socket::SocketHandle | SocketHandle |
Public Member Functions | |
ServerSocket () | |
virtual | ~ServerSocket () |
virtual void | bind (const char *host, int port) throw ( SocketException ) |
virtual void | bind (const char *host, int port, int backlog) throw ( SocketException ) |
virtual Socket * | accept () throw ( SocketException ) |
virtual void | close () throw ( cms::CMSException ) |
virtual bool | isBound () const |
Static Protected Attributes | |
static StaticServerSocketInitializer | staticSocketInitializer |
Private Attributes | |
SocketHandle | socketHandle |
Classes | |
class | StaticServerSocketInitializer |
|
|
|
Constructor. Creates a non-bound server socket. |
|
Destructor. Releases socket handle if close() hasn't been called. |
|
Blocks until a client connects to the bound socket.
|
|
Bind and listen to given IP/dns and port.
|
|
Bind and listen to given IP/dns and port.
|
|
Closes the server socket. |
|
|
|
|
|
|