summaryrefslogtreecommitdiffhomepage
path: root/netio.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-03-20 22:53:32 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-03-20 22:53:32 +0800
commit20f9683ae050092a1f028ae55c546966c4882925 (patch)
treedbec8f8e56a0bc4ee4e15b031a2ba8e2e101ab07 /netio.h
parentdce384668bb8e684c0e83f03a7ff4b30cfc6fe4b (diff)
avoid malloc for iovec
Diffstat (limited to 'netio.h')
-rw-r--r--netio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/netio.h b/netio.h
index 33e1b4d..5d9f799 100644
--- a/netio.h
+++ b/netio.h
@@ -44,7 +44,8 @@ void cancel_connect(struct dropbear_progress_connection *c);
void connect_set_writequeue(struct dropbear_progress_connection *c, struct Queue *writequeue);
/* TODO: writev #ifdef guard */
-struct iovec * packet_queue_to_iovec(struct Queue *queue, int *ret_iov_count);
+/* Fills out iov which contains iov_count slots, returning the number filled in iov_count */
+void packet_queue_to_iovec(struct Queue *queue, struct iovec *iov, unsigned int *iov_count);
void packet_queue_consume(struct Queue *queue, ssize_t written);
#ifdef DROPBEAR_TCP_FAST_OPEN