summaryrefslogtreecommitdiff
path: root/lib/async_req/async_sock.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-22 23:13:34 +0100
committerVolker Lendecke <vl@samba.org>2009-02-24 20:40:47 +0100
commit4021029cddddcb23c41cd7f8b711f3a8d83c3931 (patch)
treec5692c1c7cb9c65b76d9912d0676d64b4f1c11c0 /lib/async_req/async_sock.h
parentf9df355befdef7c424ebc70abfeb696de095235e (diff)
downloadsamba-4021029cddddcb23c41cd7f8b711f3a8d83c3931.tar.gz
samba-4021029cddddcb23c41cd7f8b711f3a8d83c3931.tar.bz2
samba-4021029cddddcb23c41cd7f8b711f3a8d83c3931.zip
Add async read_packet
Diffstat (limited to 'lib/async_req/async_sock.h')
-rw-r--r--lib/async_req/async_sock.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/async_req/async_sock.h b/lib/async_req/async_sock.h
index 6a862c45c6..0cf4e4ecf5 100644
--- a/lib/async_req/async_sock.h
+++ b/lib/async_req/async_sock.h
@@ -51,4 +51,14 @@ struct tevent_req *writev_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
int fd, struct iovec *iov, int count);
ssize_t writev_recv(struct tevent_req *req, int *perrno);
+struct tevent_req *read_packet_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ int fd, size_t initial,
+ ssize_t (*more)(uint8_t *buf,
+ size_t buflen,
+ void *private_data),
+ void *private_data);
+ssize_t read_packet_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
+ uint8_t **pbuf, int *perrno);
+
#endif