eid::ConnectionPack Class Reference

#include <eid_connection.h>

List of all members.

Public Member Functions

 ConnectionPack ()
 ConnectionPack (const char *_host, int _port)
 ~ConnectionPack ()

Static Public Member Functions

static int getNextValues (ConnectionPack **pCp, const char *seqName, int numNext, RespPack &out)
static int getNextValues (ConnectionPack **pCp, int seqId, int numNext, RespPack &out)

Public Attributes

int port
char * host
ulxr::TcpIpConnection * conn
ulxr::HttpProtocol * prot
ulxr::Requester * client


Detailed Description

Class that handles the connection to external ExIdDis server.

Constructor & Destructor Documentation

eid::ConnectionPack::ConnectionPack (  ) 

Default constructor. You shouldn't use it, unless you set these params before running the destructor of this object:

eid::ConnectionPack::ConnectionPack ( const char *  _host,
int  _port 
)

Constructor that creates the connection to ExIdDis server (master or worker).

Parameters:
_host server location
_port port on which server is listening

eid::ConnectionPack::~ConnectionPack (  ) 

Destructor. Tries to close the connection and do the default destructor work.


Member Function Documentation

int eid::ConnectionPack::getNextValues ( ConnectionPack **  pCp,
int  seqId,
int  numNext,
RespPack out 
) [static]

It takes a pointer to pointer to ConnectionPack, and sequence id. It tries to get numNext identifiers from server pointed by pCp and put them to out RespPack. If sequence was moved to another server function modifies the pCp value - it set it to the server that contains sequence. Function creates MethodCall and call getNextValueCore.

Parameters:
pCp pointer to ConnectionPack that contains our sequence (can be modified)
seqId sequence id
get_next method that is called on remote server
out output pack
Returns:
error code

int eid::ConnectionPack::getNextValues ( ConnectionPack **  pCp,
const char *  seqName,
int  numNext,
RespPack out 
) [static]

It takes a pointer to pointer to ConnectionPack, and sequence name. It tries to get numNext identifiers from server pointed by pCp and put them to out RespPack. If sequence was moved to another server function modifies the pCp value - it set it to the server that contains sequence. Function creates MethodCall and call getNextValueCore.

Parameters:
pCp pointer to ConnectionPack that contains our sequence (can be modified)
seqId sequence id
get_next method that is called on remote server
out output pack
Returns:
error code


Member Data Documentation

ulxr::Requester* eid::ConnectionPack::client

Ulxr client class.

ulxr::TcpIpConnection* eid::ConnectionPack::conn

Ulxr connection class.

Connection host.

Connection port.

ulxr::HttpProtocol* eid::ConnectionPack::prot

Ulxr protocol class.


The documentation for this class was generated from the following files:

Generated on Mon Oct 5 18:55:11 2009 for ExIdDis by  doxygen 1.5.8