summaryrefslogtreecommitdiff
path: root/lib/tsocket/tsocket.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-11 15:51:07 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-19 16:25:56 +0100
commita27c6eb8e23db924e0dc67aa71c832be54cda98f (patch)
treeb0672cee3bef829b808db0a6e21b94aec968a941 /lib/tsocket/tsocket.h
parent6c8bd1005d7440c929d5b70f9faba09e0838b12a (diff)
downloadsamba-a27c6eb8e23db924e0dc67aa71c832be54cda98f.tar.gz
lib/tsocket: add tsocket_readv_send/recv()
metze
Diffstat (limited to 'lib/tsocket/tsocket.h')
-rw-r--r--lib/tsocket/tsocket.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tsocket/tsocket.h b/lib/tsocket/tsocket.h
index d4fb68f766a..9bcfb5cb7ef 100644
--- a/lib/tsocket/tsocket.h
+++ b/lib/tsocket/tsocket.h
@@ -205,5 +205,16 @@ struct tevent_req *tsocket_writev_queue_send(TALLOC_CTX *mem_ctx,
size_t count);
int tsocket_writev_queue_recv(struct tevent_req *req, int *perrno);
+typedef int (*tsocket_readv_next_iovec_t)(struct tsocket_context *sock,
+ void *private_data,
+ TALLOC_CTX *mem_ctx,
+ struct iovec **vector,
+ size_t *count);
+struct tevent_req *tsocket_readv_send(struct tsocket_context *sock,
+ TALLOC_CTX *mem_ctx,
+ tsocket_readv_next_iovec_t next_iovec_fn,
+ void *private_data);
+int tsocket_readv_recv(struct tevent_req *req, int *perrno);
+
#endif /* _TSOCKET_H */