diff packet.h @ 1027:daf21fd50abf fastopen

In theory TFO should work. Needs platform cleanup and testing
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Feb 2015 00:32:00 +0800
parents 0431915df79f
children 0da8ba489c23
line wrap: on
line diff
--- a/packet.h	Wed Feb 18 23:02:49 2015 +0800
+++ b/packet.h	Thu Feb 19 00:32:00 2015 +0800
@@ -27,6 +27,7 @@
 #define _PACKET_H_
 
 #include "includes.h"
+#include "queue.h"
 
 void write_packet();
 void read_packet();
@@ -46,4 +47,8 @@
 
 #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_ */