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

edg::workload::common::socket_pp::GSISocketClient Class Reference

The secure Client. More...

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

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

Public Methods

 GSISocketClient (const std::string &, int)
 Constructor. More...

virtual ~GSISocketClient ()
 Destructor.

void ServerContact (const std::string &contact)
 Set the server contact. More...

void DelegateCredentials (bool mode)
 Set whether the client must delegate credentials or not. More...

virtual bool Open ()
 Open the connection. More...

virtual bool Close ()
 Close the connection. More...


Protected Methods

bool InitGSIAuthentication (int sock)
 Initialize GSI Authentication. More...


Detailed Description

The secure Client.

This object acts as Client in the message exchange. It asks the client for connections referencing an agent for secure message exchange.

Author:
Salvatore Monforte salvatore.monforte@ct.infn.it , comments by Marco Pappalardo marco.pappalardo@ct.infn.it and Salvatore Monforte


Constructor & Destructor Documentation

GSISocketClient const std::string &   ,
int   
 

Constructor.

Parameters:
p  the secure server port.
b  the backlog, that is the maximum number of outstanding connection requests.


Member Function Documentation

virtual bool Close   [virtual]
 

Close the connection.

Returns:
true for successful close, false otehrwise.

Reimplemented from edg::workload::common::socket_pp::SocketClient.

void DelegateCredentials bool    mode [inline]
 

Set whether the client must delegate credentials or not.

Parameters:
mode  a boolean explainig whether to delegate or not.

bool InitGSIAuthentication int    sock [protected]
 

Initialize GSI Authentication.

This method asks the server for authentication.

Parameters:
sock  the socket descriptot
Returns:
true on success, false otherwise.

virtual bool Open   [virtual]
 

Open the connection.

Returns:
true for successful opening, false otherwise.

Reimplemented from edg::workload::common::socket_pp::SocketClient.

void ServerContact const std::string &    contact [inline]
 

Set the server contact.

Parameters:
contact  the server contact string to set.


The documentation for this class was generated from the following file:
Generated on Fri May 14 14:18:26 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