diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-03-20 22:53:32 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-03-20 22:53:32 +0800 |
commit | 20f9683ae050092a1f028ae55c546966c4882925 (patch) | |
tree | dbec8f8e56a0bc4ee4e15b031a2ba8e2e101ab07 /netio.h | |
parent | dce384668bb8e684c0e83f03a7ff4b30cfc6fe4b (diff) |
avoid malloc for iovec
Diffstat (limited to 'netio.h')
-rw-r--r-- | netio.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |