summaryrefslogtreecommitdiff
path: root/lib/tsocket/tsocket.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-04-03 17:17:15 +0200
committerStefan Metzmacher <metze@samba.org>2009-05-01 17:41:56 +0200
commita0830f4cb93997e235acb95e1bdb438626601974 (patch)
tree3fe6c211906956badbc32440281aaeb2edf02283 /lib/tsocket/tsocket.h
parentee6d796c19e15f6a2e3044ce85ea9ff30dfeb5f0 (diff)
downloadsamba-a0830f4cb93997e235acb95e1bdb438626601974.tar.gz
samba-a0830f4cb93997e235acb95e1bdb438626601974.tar.bz2
samba-a0830f4cb93997e235acb95e1bdb438626601974.zip
tsocket: add tstream_readv_pdu_send/recv()
metze
Diffstat (limited to 'lib/tsocket/tsocket.h')
-rw-r--r--lib/tsocket/tsocket.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/tsocket/tsocket.h b/lib/tsocket/tsocket.h
index 6583a5e786..aef73ae8c5 100644
--- a/lib/tsocket/tsocket.h
+++ b/lib/tsocket/tsocket.h
@@ -190,7 +190,7 @@ int _tstream_bsd_existing_socket(TALLOC_CTX *mem_ctx,
__location__)
/*
- * Queue helpers
+ * Queue and PDU helpers
*/
struct tevent_req *tdgram_sendto_queue_send(TALLOC_CTX *mem_ctx,
@@ -202,5 +202,17 @@ struct tevent_req *tdgram_sendto_queue_send(TALLOC_CTX *mem_ctx,
struct tsocket_address *dst);
ssize_t tdgram_sendto_queue_recv(struct tevent_req *req, int *perrno);
+typedef int (*tstream_readv_pdu_next_vector_t)(struct tstream_context *stream,
+ void *private_data,
+ TALLOC_CTX *mem_ctx,
+ struct iovec **vector,
+ size_t *count);
+struct tevent_req *tstream_readv_pdu_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct tstream_context *stream,
+ tstream_readv_pdu_next_vector_t next_vector_fn,
+ void *next_vector_private);
+int tstream_readv_pdu_recv(struct tevent_req *req, int *perrno);
+
#endif /* _TSOCKET_H */