blob: 4e9d6467a58504564689a529c27074eba30b17dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef MRAT_SESSION_H
#define MRAT_SESSION_H
#include "list.h"
struct session {
int id;
int socket;
int alive;
struct list_head list;
};
int init_session(int socket);
struct session* find_session(int id);
int write_session(int id, const char *data, size_t size);
size_t read_session(int id, char *data, size_t size);
#endif
|