Mercurial > dropbear
comparison packet.c @ 1025:02baa0b334e8 fastopen
async connections working
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 18 Feb 2015 22:46:15 +0800 |
parents | aac0095dc3b4 |
children | 59a1146e8b9d |
comparison
equal
deleted
inserted
replaced
1024:aac0095dc3b4 | 1025:02baa0b334e8 |
---|---|
50 #ifndef DISABLE_ZLIB | 50 #ifndef DISABLE_ZLIB |
51 static buffer* buf_decompress(buffer* buf, unsigned int len); | 51 static buffer* buf_decompress(buffer* buf, unsigned int len); |
52 static void buf_compress(buffer * dest, buffer * src, unsigned int len); | 52 static void buf_compress(buffer * dest, buffer * src, unsigned int len); |
53 #endif | 53 #endif |
54 | 54 |
55 #if 0 | |
55 struct iovec * dropbear_queue_to_iovec(struct Queue *queue) { | 56 struct iovec * dropbear_queue_to_iovec(struct Queue *queue) { |
56 | 57 |
57 struct iovec *iov = NULL; | 58 struct iovec *iov = NULL; |
58 struct Link *l; | 59 struct Link *l; |
59 int iov_max_count; | 60 int iov_max_count; |
67 } | 68 } |
68 | 69 |
69 void dropbear_queue_consume(struct Queue *queue, ssize_t written) { | 70 void dropbear_queue_consume(struct Queue *queue, ssize_t written) { |
70 | 71 |
71 } | 72 } |
73 #endif | |
72 | 74 |
73 /* non-blocking function writing out a current encrypted packet */ | 75 /* non-blocking function writing out a current encrypted packet */ |
74 void write_packet() { | 76 void write_packet() { |
75 | 77 |
76 ssize_t written; | 78 ssize_t written; |