1#ifndef MACHINATRIX_NUMERARIA_H
2#define MACHINATRIX_NUMERARIA_H
20 MTRIX_NUMERARIA_MAX_CMD = 1024,
24 MTRIX_NUMERARIA_MAX_PACKET =
25 MTRIX_NUMERARIA_MAX_CMD + MTRIX_NUMERARIA_CMD_SIZE,
26 MTRIX_NUMERARIA_CMD_EXIT = 1,
27 MTRIX_NUMERARIA_CMD_SQL = 2,
28 MTRIX_NUMERARIA_CMD_RECORD_CMD = 3,
29 MTRIX_NUMERARIA_CMD_STATS = 4,
33 MTRIX_NUMERARIA_CMD_SIZE
41int mtrix_numeraria_init_socket(
const char *addr);
47int mtrix_numeraria_init_unix(
const char *path);
Format of each command packet.
Definition numeraria.h:9
char data[]
Variable-length data.
Definition numeraria.h:15
uint8_t cmd
One of the MTRIX_NUMERARIA_CMD_* constants.
Definition numeraria.h:13
uint32_t len
Length of the packet's data section.
Definition numeraria.h:11