PacketFactory20.
More...
#include <Protocol2x.h>
|
| PacketFactory2x () |
|
virtual | ~PacketFactory2x () |
|
void | setProtocolVersion (unsigned char version) |
| Sets the 2x protocol version The default is version V20. More...
|
|
std::shared_ptr< connector::Packet > | create (const unsigned char *buffer, std::size_t bufferLength) override |
| To determine if a packet is an error response we check: that the packet has a length of packet header bytes + 1 and the number of items is 0 and the error code non-zero. More...
|
|
| BaosPacketFactory () |
|
virtual | ~BaosPacketFactory () |
|
std::shared_ptr< connector::Packet > | create (const unsigned char *buffer, std::size_t bufferLength) override |
| Creates the packet type from a corresponding byte stream Actually, this simply returns an UnknownPacket and should be overridden by the specific protocol packet factory. More...
|
|
PacketFactory2x::PacketFactory2x |
( |
| ) |
|
PacketFactory2x::~PacketFactory2x |
( |
| ) |
|
|
virtual |
Packet::Ptr PacketFactory2x::create |
( |
const unsigned char * |
buffer, |
|
|
std::size_t |
bufferLength |
|
) |
| |
|
override |
To determine if a packet is an error response we check: that the packet has a length of packet header bytes + 1 and the number of items is 0 and the error code non-zero.
void PacketFactory2x::setProtocolVersion |
( |
unsigned char |
version | ) |
|
Sets the 2x protocol version The default is version V20.
The documentation for this class was generated from the following files: