summaryrefslogtreecommitdiff
path: root/ecp/src/ecp/vconn/vconn.h
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/src/ecp/vconn/vconn.h')
-rw-r--r--ecp/src/ecp/vconn/vconn.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ecp/src/ecp/vconn/vconn.h b/ecp/src/ecp/vconn/vconn.h
index 9bdb3d3..f343846 100644
--- a/ecp/src/ecp/vconn/vconn.h
+++ b/ecp/src/ecp/vconn/vconn.h
@@ -13,9 +13,9 @@
typedef struct ECPVConnInb {
ECPConnection b;
- ECPConnection *next;
- ECPDHPub key_next[ECP_MAX_NODE_KEY];
- unsigned char key_next_curr;
+ ECPDHPub vlink_next;
+ ECPDHPub vconn_next[ECP_MAX_NODE_KEY];
+ unsigned char vconn_next_curr;
} ECPVConnInb;
typedef struct ECPVConnOutb {
@@ -45,5 +45,7 @@ void ecp_vlink_handle_close(ECPConnection *conn);
#endif
ssize_t ecp_vlink_handle_msg(ECPConnection *conn, ecp_seq_t seq, unsigned char mtype, unsigned char *msg, size_t msg_size, ECP2Buffer *bufs);
+int ecp_vconn_sock_create(ECPSocket *sock);
+void ecp_vconn_sock_destroy(ECPSocket *sock);
int ecp_vconn_handler_init(ECPContext *ctx, ECPConnHandler *vconn_handler);
int ecp_vlink_handler_init(ECPContext *ctx, ECPConnHandler *vlink_handler);