summaryrefslogtreecommitdiffhomepage
path: root/packet.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-19 00:32:00 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-19 00:32:00 +0800
commit76a3eb393c021905736f79e7e048017f664b2430 (patch)
tree3a45ae901e4806496aef7b3dde3680dedd03326c /packet.h
parent5f0cc969a005757778848a459f924a237a35fc7d (diff)
In theory TFO should work. Needs platform cleanup and testing
--HG-- branch : fastopen
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/packet.h b/packet.h
index 4645b14..ac14eca 100644
--- a/packet.h
+++ b/packet.h
@@ -27,6 +27,7 @@
#define _PACKET_H_
#include "includes.h"
+#include "queue.h"
void write_packet();
void read_packet();
@@ -46,4 +47,8 @@ typedef struct PacketType {
#define INIT_READBUF 128
+/* TODO: writev #ifdef guard */
+struct iovec * packet_queue_to_iovec(struct Queue *queue, int *ret_iov_count);
+void packet_queue_consume(struct Queue *queue, ssize_t written);
+
#endif /* _PACKET_H_ */