Inheritance diagram for SocketClient:
Public Member Functions | |
SocketClient (const std::string &, int) | |
Constructor. | |
virtual | ~SocketClient () |
Destructor. | |
bool | Send (const std::string &) |
Send a string value. | |
bool | Send (int) |
Send an int value. | |
bool | Send (long) |
Send a long value. | |
bool | Receive (int &) |
Receive an int value. | |
bool | Receive (long &) |
Receive a long value. | |
bool | Receive (std::string &) |
Receive a string value. | |
virtual bool | Open () |
Open a connection to the Server. | |
virtual bool | Close () |
Close the connection. | |
bool | SetTimeout (size_t secs) |
Set the connection timeout. | |
std::string | Host () const |
Return the host name. | |
SocketAgent * | getAgent () const |
Returns a pointer to the SocketAgent. | |
Public Attributes | |
const std::string | host |
The host name. | |
const int | port |
The host port. | |
Protected Member Functions | |
bool | AttachAgent (SocketAgent *) |
Attach an agent to this client. | |
Protected Attributes | |
SocketAgent * | agent |
The Socket Agent reference for message exchange. |
This object acts as Client in the message exchange. It requests the server for connections and it creates and sends 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. |
|
Attach an agent to this client. This method also connects the agent to the proper server.
|
|
Close the connection.
Reimplemented in GSISocketClient. |
|
Returns a pointer to the SocketAgent.
|
|
Return the host name.
|
|
Open a connection to the Server.
Reimplemented in GSISocketClient. |
|
Receive a string value.
|
|
Receive a long value.
|
|
Receive an int value.
|
|
Send a long value.
|
|
Send an int value.
|
|
Send a string value.
|
|
Set the connection timeout.
|
|
The Socket Agent reference for message exchange.
|
|
The host name.
|
|
The host port.
|