Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

edg::workload::common::socket_pp::SocketAgent Class Reference

The connection agent. More...

Inheritance diagram for edg::workload::common::socket_pp::SocketAgent:

edg::workload::common::socket_pp::GSISocketAgent List of all members.

Public Methods

virtual bool Send (const std::string &)
 Send a string value. More...

virtual bool Send (int)
 Send a int value. More...

virtual bool Send (long)
 Send a long value. More...

virtual bool Receive (int &)
 Receive an int value. More...

virtual bool Receive (long &)
 Receive a long value. More...

virtual bool Receive (std::string &)
 Receive a string value. More...

std::string HostName ()
 Returns the host name. More...

bool SetTimeout (size_t)
 Set the connection timeout. More...

bool SetRcvTimeout (size_t)
 Set the connection timeout. More...

bool SetSndTimeout (size_t)
 Set the connection timeout. More...


Protected Methods

 SocketAgent ()
 Constructor.

virtual ~SocketAgent ()
 Destructor.


Protected Attributes

int sck
 The socket descriptor.


Friends

class SocketServer
 The Server.

class SocketClient
 The Client.


Detailed Description

The connection agent.

This object acts as agent in message exchange. It joins the server and the client in both connection establishment and message exchange.

Author:
Salvatore Monforte , comments by Marco Pappalardo and Salvatore Monforte


Member Function Documentation

std::string HostName  
 

Returns the host name.

Parameters:
the  string to fill with host name.

virtual bool Receive std::string &    [virtual]
 

Receive a string value.

Parameters:
s  the string to fill.
Returns:
true on success, false otherwise.

Reimplemented in edg::workload::common::socket_pp::GSISocketAgent.

virtual bool Receive long &    [virtual]
 

Receive a long value.

Parameters:
i  a long to fill.
Returns:
true on success, false otherwise.

virtual bool Receive int &    [virtual]
 

Receive an int value.

Parameters:
i  an int to fill.
Returns:
true on success, false otherwise.

Reimplemented in edg::workload::common::socket_pp::GSISocketAgent.

virtual bool Send long    [virtual]
 

Send a long value.

Parameters:
i  the long value to send.
Returns:
true on success, false otherwise.

virtual bool Send int    [virtual]
 

Send a int value.

Parameters:
i  the int value to send.
Returns:
true on success, false otherwise.

Reimplemented in edg::workload::common::socket_pp::GSISocketAgent.

virtual bool Send const std::string &    [virtual]
 

Send a string value.

Parameters:
s  the string value to send.
Returns:
true on success, false otherwise.

Reimplemented in edg::workload::common::socket_pp::GSISocketAgent.

bool SetRcvTimeout size_t   
 

Set the connection timeout.

Parameters:
secs  a size_t representing the timeout in seconds while receiving data.
Returns:
tru on success, false otherwise.

bool SetSndTimeout size_t   
 

Set the connection timeout.

Parameters:
secs  a size_t representing the timeout in seconds while sending data.
Returns:
tru on success, false otherwise.

bool SetTimeout size_t   
 

Set the connection timeout.

Parameters:
secs  a size_t representing the timeout in seconds.
Returns:
tru on success, false otherwise.


The documentation for this class was generated from the following file:
Generated on Fri May 14 14:18:27 2004 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002