FeeServer::Client Class Reference
[Client code]
#include <feeserver/fee_client.hh>
List of all members.
Detailed Description
An example client.
- Examples:
-
test_client.cc.
Constructor & Destructor Documentation
FeeServer::Client::Client |
( |
const std::string & |
server, |
|
|
const std::string & |
dns, |
|
|
unsigned int |
tries = 20 , |
|
|
unsigned int |
timeout = 2000 | |
|
) |
| | |
FeeServer::Client::~Client |
( |
|
) |
[virtual] |
FeeServer::Client::Client |
( |
const Client & |
|
) |
[protected] |
Member Function Documentation
bool FeeServer::Client::SendCommand |
( |
unsigned short |
flags, |
|
|
std::vector< unsigned char > & |
data | |
|
) |
| | |
Send a command to the server
void FeeServer::Client::HandleMessage |
( |
Message & |
m |
) |
[inline, virtual] |
Function called when messages arrive
- Parameters:
-
virtual void FeeServer::Client::NolinkMessage |
( |
|
) |
[inline, virtual] |
Called on no-link to message channel
virtual void FeeServer::Client::NolinkAcknowledge |
( |
|
) |
[inline, virtual] |
Called on no-link to acknowledge channel
void FeeServer::Client::AcknowledgeError |
( |
short |
error |
) |
[inline, virtual] |
void FeeServer::Client::ChecksumFailed |
( |
unsigned int |
expected, |
|
|
unsigned int |
got | |
|
) |
| | [inline, virtual] |
Bad check sum in acknowledge
- Parameters:
-
| expected | Expected check sum |
| got | The actual check sum |
void FeeServer::Client::UnexpectedReply |
( |
unsigned int |
expected, |
|
|
unsigned int |
got | |
|
) |
| | [inline, virtual] |
Got unexpected reply
- Parameters:
-
| expected | Expected reply |
| got | The actual reply |
void FeeServer::Client::UnknownService |
( |
const std::string & |
name |
) |
[inline, virtual] |
Got an unknown service update
- Parameters:
-
| name | Name of service updated |
virtual void FeeServer::Client::Timeout |
( |
|
) |
[inline, virtual] |
Called when the acknowledge times out
Client& FeeServer::Client::operator= |
( |
const Client & |
|
) |
[protected] |
unsigned int FeeServer::Client::MakeId |
( |
|
) |
[protected, virtual] |
void FeeServer::Client::DoHandleAcknowledge |
( |
|
) |
[protected] |
Information handler Handle the acknowledge
Friends And Related Function Documentation
friend class InfoHandler [friend] |
Hidden info handler is a friend
Member Data Documentation
Pointer to hidden info handler
Current number of valid bytes in buffer
The documentation for this class was generated from the following files: