-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinfo.h
More file actions
44 lines (35 loc) · 710 Bytes
/
info.h
File metadata and controls
44 lines (35 loc) · 710 Bytes
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
42
43
44
#ifndef MEMLINK_INFO_H
#define MEMLINK_INFO_H
#include "common.h"
#include "conn.h"
#include <time.h>
#define CONN_INFO_MEMBER \
int fd;\
char client_ip[16];\
int port;\
int cmd_count;\
struct timeval start;
typedef struct _conn_info
{
CONN_INFO_MEMBER
}ConnInfo;
typedef struct _rw_conn_info
{
CONN_INFO_MEMBER
}RwConnInfo;
typedef struct _sync_conn_info
{
CONN_INFO_MEMBER
int logver;
int logline;
int delay;
unsigned char status;
char push_log_stop;
}SyncConnInfo;
int info_sys_stat(MemLinkStatSys *stat);
int info_read_conn(Conn *conn);
int info_write_conn(Conn *conn);
int info_sync_conn(Conn *conn);
int info_sys_config(Conn *conn);
int info_sys_config(Conn *conn);
#endif