diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-02-19 00:32:00 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-02-19 00:32:00 +0800 |
commit | 76a3eb393c021905736f79e7e048017f664b2430 (patch) | |
tree | 3a45ae901e4806496aef7b3dde3680dedd03326c /packet.h | |
parent | 5f0cc969a005757778848a459f924a237a35fc7d (diff) |
In theory TFO should work. Needs platform cleanup and testing
--HG--
branch : fastopen
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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_ */ |