From 0e84e05f0392b667d9b132ef3cf32a3ba1e318af Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sat, 26 Mar 2016 11:37:37 +0000 Subject: [PATCH] Added attribs for data msg handling. FossilOrigin-Name: 3d053aefcd45894596ce33f433aaaa530f492a77beb657bf3adbcab75a84e1ea --- src/cw/conn.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cw/conn.h b/src/cw/conn.h index 9dd973ae..0dacc31d 100644 --- a/src/cw/conn.h +++ b/src/cw/conn.h @@ -50,6 +50,12 @@ struct conn { int sock; struct sockaddr_storage addr; + + + int data_sock; + struct sockaddr_storage data_addr; + + int recv_timeout; mbag_t outgoing; @@ -213,6 +219,8 @@ extern int process_message(struct conn *conn, uint8_t * rawmsg, int rawlen, extern uint8_t *conn_get_message(struct conn *conn); extern int conn_send_packet(struct conn *conn, const uint8_t * buffer, int len); +extern int conn_send_data_packet(struct conn * conn, const uint8_t * buffer, int len); + extern void conn_destroy(struct conn *conn); uint8_t *conn_q_get_packet(struct conn *conn);