diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-02-18 00:05:27 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-02-18 00:05:27 +0800 |
commit | ae8c94249d1df9e69d48f9998aa202a909d7074c (patch) | |
tree | abb93c9a06635d4770de46db0bb11591c146753a /packet.c | |
parent | 91494d868c4d28b0bbc41d8de0c618b1bd9ba1ba (diff) | |
download | dropbear-ae8c94249d1df9e69d48f9998aa202a909d7074c.tar.gz |
work in progress for async connect
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -52,10 +52,29 @@ static buffer* buf_decompress(buffer* buf, unsigned int len); static void buf_compress(buffer * dest, buffer * src, unsigned int len); #endif +struct iovec * dropbear_queue_to_iovec(struct Queue *queue) { + + struct iovec *iov = NULL; + struct Link *l; + int iov_max_count; + + #ifndef IOV_MAX + #define IOV_MAX UIO_MAXIOV + #endif + +#error incomplete + +} + +void dropbear_queue_consume(struct Queue *queue, ssize_t written) { + +} + /* non-blocking function writing out a current encrypted packet */ void write_packet() { - int len, written; + ssize_t written; + int len; buffer * writebuf = NULL; unsigned packet_type; #ifdef HAVE_WRITEV |