Inheritance diagram for SocketServer:
Public Member Functions | |
SocketServer (int, int=5) | |
Constructor. | |
virtual | ~SocketServer () |
Destructor. | |
bool | Open () |
Open the connection. | |
bool | IsConnectionPending () |
Return whether there is any pending connection. | |
virtual void | Close () |
Close the connection. | |
virtual SocketAgent * | Listen (SocketAgent *=0) |
Listen for incoming connection requests. | |
void | KillAgent (SocketAgent *) |
Kill a Socket Agent. | |
Protected Attributes | |
int | sck |
The socket descriptor. |
This object acts as Server in the message exchange. It listens for client connections and, when asked for, it receives, sets and sends back the reference to the agent to be used for message exchange.
comments by Marco Pappalardo marco.pappalardo@ct.infn.it and Salvatore Monforte
|
Constructor.
|
|
Destructor. This method must be also implemented by object subclassing server socket. |
|
Close the connection.
Reimplemented in GSISocketServer. |
|
Return whether there is any pending connection.
|
|
Kill a Socket Agent. This also close the communication this agent holds.
|
|
Listen for incoming connection requests. Accept incoming requests and redirect communication on a dedicated port.
|
|
Open the connection.
|
|
The socket descriptor.
|