lib/tsocket: add tsocket_sendto_send/recv()
[ira/wip.git] / lib / tsocket / tsocket.h
index 8cabd4263f6109662b7a2b1c3cda99dffb752bfd..7987571bc37fd9ae9f1ba029297af8757a4f8c25 100644 (file)
@@ -172,5 +172,12 @@ ssize_t tsocket_recvfrom_recv(struct tevent_req *req,
                              uint8_t **buf,
                              struct tsocket_address **src);
 
+struct tevent_req *tsocket_sendto_send(struct tsocket_context *sock,
+                                      TALLOC_CTX *mem_ctx,
+                                      const uint8_t *buf,
+                                      size_t len,
+                                      const struct tsocket_address *dst);
+ssize_t tsocket_sendto_recv(struct tevent_req *req, int *perrno);
+
 #endif /* _TSOCKET_H */