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