added SSL
This commit is contained in:
parent
d9ee2c56f2
commit
670e38a105
8 changed files with 142 additions and 22 deletions
4
client.h
4
client.h
|
|
@ -2,11 +2,15 @@
|
|||
#define CLIENT_H
|
||||
|
||||
#include <uv.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
struct client {
|
||||
uv_tcp_t handle;
|
||||
SSL *ssl;
|
||||
BIO *rbio;
|
||||
BIO *wbio;
|
||||
uint32_t user_id;
|
||||
uint32_t current_room_id;
|
||||
bool is_authenticated;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue