project skeleton
This commit is contained in:
commit
d9ee2c56f2
8 changed files with 237 additions and 0 deletions
16
client.h
Normal file
16
client.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef CLIENT_H
|
||||
#define CLIENT_H
|
||||
|
||||
#include <uv.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
struct client {
|
||||
uv_tcp_t handle;
|
||||
uint32_t user_id;
|
||||
uint32_t current_room_id;
|
||||
bool is_authenticated;
|
||||
char username[32];
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue