#include <psocket.h>
Inheritance diagram for P::StreamSocketServer:

Public Member Functions | |
| StreamSocketServer (int domain) throw (IOError) | |
| Protocol domain constructor. | |
| StreamSocketServer (const NetworkAddress &addr, port_t port) throw (IOError) | |
| Listen constructor. | |
| ~StreamSocketServer () throw () | |
| Destructor. | |
| void | listen () throw (IOError) |
| Listen for incoming connections. | |
| bool | waitClient (unsigned int timeout) throw (IOError) |
| Wait for client. | |
| void | getName (NetworkAddress &addr, port_t &port) const throw (LogicError,IOError) |
| Get the address and port the Socket is bound to. | |
Protected Member Functions | |
| io_handle_t | accept () throw (IOError) |
| Accept the pending connection. | |
Friends | |
| class | StreamSocket |
Definition at line 132 of file psocket.h.
|
|
Protocol domain constructor. Constructs a stream server socket for the given protocol domain. The socket can then be used to listen for and accept incoming client connections.
|
|
||||||||||||
|
Listen constructor. Constructs a stream server socket that is bound to the given address and listen's for client connections.
|
|
|
Destructor.
|
|
|
Accept the pending connection.
|
|
||||||||||||
|
Get the address and port the Socket is bound to.
Reimplemented from P::Socket. |
|
|
Listen for incoming connections. Listen for incoming connections on socket. The socket must be bound to an address before listening. Use Socket::bind() to bind the socket to an address.
|
|
|
Wait for client. Waits for a client to connect to the socket server.
|
|
|
|
1.3.3