#include <FeePacket.hpp>
Public Member Functions | |
FeePacket (short errorCode, char *payload, int payloadSize, bool checksum=false, FlagBits flags=NO_FLAGS, bool huffman=false) | |
FeePacket (short errorCode, char *payload, int payloadSize, std::vector< char * > *feeContainer, bool checksum=false, FlagBits flags=NO_FLAGS, bool huffman=false) | |
FeePacket (std::vector< char * > *feeContainer, int numberofTags=1) | |
~FeePacket () | |
unsigned int | getId () const |
short | getErrorCode () const |
int | getPayloadSize () const |
int | getFeePacketSize () const |
FlagBits | getFlags () const |
bool | isHuffmanSet () const |
bool | isChecksumSet () const |
bool | isValid () const |
char * | getPayload () const |
char * | marshall () |
void | increaseID () |
std::map< int, char * > | getAnswerSet () |
Static Public Member Functions | |
FeePacket * | unmarshall (char *marshalledFeePacket, int size) |
Public Attributes | |
std::vector< char * > | feeServerNames |
|
Constructor for a command. If the huffman-flag is set, the payload will be coded in huffman here in the constructor due to consistency of the payload size member. This means: the payload and payloadSize differs from the input in the constructor afterwards. The ID for the FeePacket is set inside this constructor.
|
|
Dummy constructor to get the actual ID for the ConfigureFero channel. |
|
Destructor for a FeePacket object. |
|
getAnswerSet() returns the set of expected answer ids. |
|
Gives back the error Code, if it is the result data from the FeeServer. For more details see FeeServer: fee_errors.h
|
|
Gives back the size of the command in bytes
|
|
Gives back the byte, representing the set flags.
|
|
Gives back package ID of this command
|
|
Gives back the payload of this command, note that the payload is not NULL terminated.
|
|
Gives back the payload size
|
|
increases the ID of the packet when the packet is reused for a broadcast |
|
Tells, if the checksum-flag is indicated
|
|
Tells, if the huffman-flag is indicated
|
|
Tells, if payload is valid (checksum has been correct).
|
|
Marshalls the command, so it can be send as byte-stream (char-stream) down to the FeeServer. The management of this memory is in the duty of the caller !
|
|
Constructs a FeePacket out of a received byte-stream (char-stream). The management of the memory of the returned object is in the duty of the caller.
|
|
this vector store the target names of a packet. That mean that one packet is distributed to more then one server. This technique is used to save resources. |