comparison packet.c @ 1024:aac0095dc3b4 fastopen

work in progress for async connect
author Matt Johnston <matt@ucc.asn.au>
date Wed, 18 Feb 2015 00:05:27 +0800
parents e3614649b1f5
children 02baa0b334e8
comparison
equal deleted inserted replaced
1023:a00303a7d247 1024:aac0095dc3b4
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 struct iovec * dropbear_queue_to_iovec(struct Queue *queue) {
56
57 struct iovec *iov = NULL;
58 struct Link *l;
59 int iov_max_count;
60
61 #ifndef IOV_MAX
62 #define IOV_MAX UIO_MAXIOV
63 #endif
64
65 #error incomplete
66
67 }
68
69 void dropbear_queue_consume(struct Queue *queue, ssize_t written) {
70
71 }
72
55 /* non-blocking function writing out a current encrypted packet */ 73 /* non-blocking function writing out a current encrypted packet */
56 void write_packet() { 74 void write_packet() {
57 75
58 int len, written; 76 ssize_t written;
77 int len;
59 buffer * writebuf = NULL; 78 buffer * writebuf = NULL;
60 unsigned packet_type; 79 unsigned packet_type;
61 #ifdef HAVE_WRITEV 80 #ifdef HAVE_WRITEV
62 struct iovec *iov = NULL; 81 struct iovec *iov = NULL;
63 int i; 82 int i;