15 lines
281 B
C
15 lines
281 B
C
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
typedef enum cmd_type {
|
||
|
NEIGHBOUR_REQ, NETWORK_STATE_REQ, NODE_STATE_REQ, POST, ERROR
|
||
|
} cmd_type;
|
||
|
|
||
|
typedef struct cmd_token {
|
||
|
cmd_type type;
|
||
|
char arg[193];
|
||
|
} cmd_token;
|
||
|
|
||
|
// retourne le type de commande à exécuter
|
||
|
cmd_token parse_cmd();
|