Assign an ID to each backend.

This commit is contained in:
Ian Gulliver
2016-02-15 21:22:23 +00:00
parent 798b75c30d
commit bae4398a61
5 changed files with 20 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ struct backend;
typedef bool (*parser)(struct backend *, struct packet *);
struct backend {
enum peer_type type;
char id[UUID_LEN];
int fd;
struct buf buf;
char parser_state[PARSER_STATE_LEN];