summaryrefslogtreecommitdiff
path: root/ecp/server/vlink.h
blob: 78af6b124972fe2a4e442264497c6b400f0d3e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define MAX_KEYX_CNT        100
#define MAX_OPEN_CNT        100

#define CONN_EXP_TIME       22

void vlink_handle_err(ECPConnection *conn, unsigned char mtype, int err);
int vlink_handle_open(ECPConnection *conn, ECP2Buffer *bufs);
void vlink_handle_close(ECPConnection *conn);
int vlink_open_conn(ECPSocket *sock, ECPNode *node);
void vlink_new_node(ECPSocket *sock, ECPDirItem *item);
int vlink_insert_node(ECPConnection *conn);

void vlink_keyx(void);
void vlink_open(ECPSocket *sock);
int vlink_start_open(ECPSocket *sock);
int vlink_start_keyx(void);
int vlink_init(ECPContext *ctx);