#include <inttypes.h>
#include "vlcb/common/vlcb_defs.h"
#include "vlcb/platform/error.h"
Go to the source code of this file.
◆ VLCB_NET_PKT_MAX_PAYLOAD
#define VLCB_NET_PKT_MAX_PAYLOAD 7 |
Definition at line 8 of file vlcb.h.
◆ VlcbNetPayload
typedef uint8_t VlcbNetPayload[7] |
VLCB payload buffer
The type is supposed to function as a helper, so that clients don't have to write the whole expression and ensure it's correct.
Definition at line 17 of file vlcb.h.
◆ VlcbNetPacketConstructErr
Enumerator |
---|
VLCB_NET_PKT_CONSTRUCT_ERR_OK | |
VLCB_NET_PKT_CONSTRUCT_ERR_PAYLOAD_TOO_LARGE | Given payload was too large
VLCB packets have max payload size of 7 bytes.
|
VLCB_NET_PKT_CONSTRUCT_ERR_INVALID_OPCODE | Opcode has invalid value
|
VLCB_NET_PKT_CONSTRUCT_ERR_COUNT | Not an actual error. Can be used to check if the given error value is within the enum range.
|
Definition at line 40 of file vlcb.h.
◆ VlcbNetProtocol
VLCB sub-protocol
VLCB doesn't define any "sub-protocol", but this library uses this as a helper for separating traffic for easier handling.
Enumerator |
---|
VLCB_NET_PROTO_DATAGRAM | |
VLCB_NET_PROTO_STREAM | |
Definition at line 26 of file vlcb.h.
◆ vlcb_net_pkt_ConstructErrToStr()
◆ vlcb_net_pkt_DetectProtocol()
Definition at line 6 of file vlcb.c.
◆ vlcb_net_pkt_New()
◆ vlcb_net_pkt_NewUnchecked()