summaryrefslogtreecommitdiff
path: root/lib/tsocket/tsocket.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-18 09:23:32 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-19 16:25:53 +0100
commitccfd6a6e39ab999df0eba0d9e94cc22f1aa6e000 (patch)
treee8170af680958b1ed170bd4a476073649cd06f6d /lib/tsocket/tsocket.h
parent6c88d61bdd7333c671f440ada23bca7169cd60fc (diff)
downloadsamba-ccfd6a6e39ab999df0eba0d9e94cc22f1aa6e000.tar.gz
samba-ccfd6a6e39ab999df0eba0d9e94cc22f1aa6e000.tar.bz2
samba-ccfd6a6e39ab999df0eba0d9e94cc22f1aa6e000.zip
lib/tsocket: add tsocket_recvfrom_send/recv()
metze
Diffstat (limited to 'lib/tsocket/tsocket.h')
-rw-r--r--lib/tsocket/tsocket.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/tsocket/tsocket.h b/lib/tsocket/tsocket.h
index 04eb989a07..8cabd4263f 100644
--- a/lib/tsocket/tsocket.h
+++ b/lib/tsocket/tsocket.h
@@ -124,7 +124,6 @@ int _tsocket_address_create_socket(const struct tsocket_address *addr,
* BSD sockets: inet, inet6 and unix
*/
-
int _tsocket_address_inet_from_strings(TALLOC_CTX *mem_ctx,
const char *fam,
const char *addr,
@@ -161,5 +160,17 @@ int _tsocket_context_bsd_wrap_existing(TALLOC_CTX *mem_ctx,
_tsocket_context_bsd_wrap_existing(mem_ctx, fd, cod, _sock, \
__location__)
+/*
+ * Async helpers
+ */
+
+struct tevent_req *tsocket_recvfrom_send(struct tsocket_context *sock,
+ TALLOC_CTX *mem_ctx);
+ssize_t tsocket_recvfrom_recv(struct tevent_req *req,
+ int *perrno,
+ TALLOC_CTX *mem_ctx,
+ uint8_t **buf,
+ struct tsocket_address **src);
+
#endif /* _TSOCKET_H */