#include <eid_connection.h>
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 |
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).
_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.
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.
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 |
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.
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 |
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.