Adbase
Adinf C++ base library V2
adbase::head Namespace Reference

Classes

class  Binary
 
class  Handler
 
class  Interface
 
union  ProtocolBinaryHeader
 Definition of the header structure for a request or repsonse packet. More...
 

Typedefs

typedef std::function< ProtocolBinaryResponseStatus(ProtocolBinaryDataType datatype, const void *body, ssize_t bodylen, ProtocolBinaryDataType *resDataType, Buffer *data)> ReadHandler
 

Enumerations

enum  ProtocolBinaryMagic { PROTOCOL_BINARY_REQ = 0x90, PROTOCOL_BINARY_RES = 0x91 }
 Definition of the legal "magic" values used in a packet. More...
 
enum  ProtocolBinaryResponseStatus {
  PROTOCOL_BINARY_RESPONSE_SUCCESS = 0x00, PROTOCOL_BINARY_RESPONSE_ERROR = 0x01, PROTOCOL_BINARY_RESPONSE_UNKNOWN_COMMAND = 0x02, PROTOCOL_BINARY_RESPONSE_NOT_SUPPORTED = 0x03,
  PROTOCOL_BINARY_RESPONSE_EBUSY = 0x04
}
 Definition of the valid response status numbers. More...
 
enum  ProtocolBinaryDataType { PROTOCOL_BINARY_TYPE_ASCII = 0x00, PROTOCOL_BINARY_TYPE_JSON = 0x01, PROTOCOL_BINARY_TYPE_GPB = 0x02, PROTOCOL_BINARY_TYPE_RAW = 0x03 }
 Defintion of the different command opcodes. More...
 

Typedef Documentation

typedef std::function<ProtocolBinaryResponseStatus (ProtocolBinaryDataType datatype, const void* body, ssize_t bodylen, ProtocolBinaryDataType* resDataType, Buffer* data)> adbase::head::ReadHandler

Definition at line 28 of file Interface.hpp.

Enumeration Type Documentation

Defintion of the different command opcodes.

Enumerator
PROTOCOL_BINARY_TYPE_ASCII 
PROTOCOL_BINARY_TYPE_JSON 
PROTOCOL_BINARY_TYPE_GPB 
PROTOCOL_BINARY_TYPE_RAW 

Definition at line 50 of file Binary.hpp.

Definition of the legal "magic" values used in a packet.

Enumerator
PROTOCOL_BINARY_REQ 
PROTOCOL_BINARY_RES 

Definition at line 25 of file Binary.hpp.

Definition of the valid response status numbers.

Enumerator
PROTOCOL_BINARY_RESPONSE_SUCCESS 
PROTOCOL_BINARY_RESPONSE_ERROR 
PROTOCOL_BINARY_RESPONSE_UNKNOWN_COMMAND 
PROTOCOL_BINARY_RESPONSE_NOT_SUPPORTED 
PROTOCOL_BINARY_RESPONSE_EBUSY 

Definition at line 36 of file Binary.hpp.