Inheritance diagram for SocketAgent:
Public Member Functions | |
virtual bool | Send (const std::string &) |
Send a string value. | |
virtual bool | Send (int) |
Send a int value. | |
virtual bool | Send (long) |
Send a long value. | |
virtual bool | Receive (int &) |
Receive an int value. | |
virtual bool | Receive (long &) |
Receive a long value. | |
virtual bool | Receive (std::string &) |
Receive a string value. | |
std::string | HostName () |
Returns the host name. | |
bool | SetTimeout (size_t) |
Set the connection timeout. | |
bool | SetRcvTimeout (size_t) |
Set the connection timeout. | |
bool | SetSndTimeout (size_t) |
Set the connection timeout. | |
int | SocketDescriptor () |
Returns the host name. | |
Protected Member Functions | |
SocketAgent () | |
Constructor. | |
virtual | ~SocketAgent () |
Destructor. | |
Protected Attributes | |
int | sck |
The socket descriptor. | |
Friends | |
class | SocketServer |
The Server. | |
class | SocketClient |
The Client. |
This object acts as agent in message exchange. It joins the server and the client in both connection establishment and message exchange.
comments by Marco Pappalardo and Salvatore Monforte
|
Constructor.
|
|
Destructor.
|
|
Returns the host name.
|
|
Receive a string value.
Reimplemented in GSISocketAgent. |
|
Receive a long value.
|
|
Receive an int value.
Reimplemented in GSISocketAgent. |
|
Send a long value.
|
|
Send a int value.
Reimplemented in GSISocketAgent. |
|
Send a string value.
Reimplemented in GSISocketAgent. |
|
Set the connection timeout.
|
|
Set the connection timeout.
|
|
Set the connection timeout.
|
|
Returns the host name.
|
|
The Client.
|
|
The Server.
|
|
The socket descriptor.
|