-
Notifications
You must be signed in to change notification settings - Fork 2
/
high_client.h
41 lines (28 loc) · 985 Bytes
/
high_client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef HIGH_CLIENT_H_INCLUDED
#define HIGH_CLIENT_H_INCLUDED
#ifndef _STDARG_H
#include <stdarg.h>
#endif
#ifndef GLOBAL_H_INCLUDED
#include "global.h"
#endif
#ifndef connection_H_INCLUDED
#include "connection.h"
#endif
#ifndef MESSAGE_H_INCLUDED
#include "message.h"
#endif
typedef struct high_client_info_t high_client_info_t;
/**@struct high_client_info_t
* Структура для хранения данных по каждому tcp-подключению
*/
struct high_client_info_t {
connection_t* client; ///< указатель на коннект - обработчик событий
struct timeval last_update; ///< время последнего обновления
// struct server_info_t * server_info;
};
int high_client_read(connection_t* conn);
void high_client_write(connection_t* conn, va_list args);
int high_client_close(connection_t* conn);
void high_client_process_message(message_t* message);
#endif // HIGH_CLIENT_H_INCLUDED