diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-04-03 17:17:15 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-05-01 17:41:56 +0200 |
commit | a0830f4cb93997e235acb95e1bdb438626601974 (patch) | |
tree | 3fe6c211906956badbc32440281aaeb2edf02283 /lib/tsocket/tsocket.h | |
parent | ee6d796c19e15f6a2e3044ce85ea9ff30dfeb5f0 (diff) | |
download | samba-a0830f4cb93997e235acb95e1bdb438626601974.tar.gz samba-a0830f4cb93997e235acb95e1bdb438626601974.tar.xz samba-a0830f4cb93997e235acb95e1bdb438626601974.zip |
tsocket: add tstream_readv_pdu_send/recv()
metze
Diffstat (limited to 'lib/tsocket/tsocket.h')
-rw-r--r-- | lib/tsocket/tsocket.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/tsocket/tsocket.h b/lib/tsocket/tsocket.h index 6583a5e7869..aef73ae8c55 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 */ |