From 5f5cdd3be1468ab608c4bf51db0577500742e48f Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 25 Jun 2020 13:06:21 +0200 Subject: [PATCH] comm point write and read structure members. --- util/netevent.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/util/netevent.h b/util/netevent.h index 019855468..c044f8938 100644 --- a/util/netevent.h +++ b/util/netevent.h @@ -87,6 +87,9 @@ typedef int comm_point_callback_type(struct comm_point*, void*, int, #define NETEVENT_CAPSFAIL -3 /** to pass done transfer to callback function; http file is complete */ #define NETEVENT_DONE -4 +/** to pass write of the write packet is done to callback function + * used when tcp_write_and_read is enabled */ +#define NETEVENT_PKT_WRITTEN -5 /** timeout to slow accept calls when not possible, in msec. */ #define NETEVENT_SLOW_ACCEPT_TIME 2000 @@ -254,6 +257,12 @@ struct comm_point { * tcp_write_and_read is enabled */ size_t tcp_write_byte_count; + /** packet to write currently over the write channel. for when + * tcp_write_and_read is enabled */ + uint8_t* tcp_write_pkt; + /** length of tcp_write_pkt in bytes */ + size_t tcp_write_pkt_len; + /** if set, read/write completes: read/write state of tcp is toggled. buffer reset/bytecount reset. -- 2.47.3