lib/tsocket: add tsocket_sendto_queue_send/recv()
[ira/wip.git] / lib / tsocket / tsocket.h
index 7987571bc37fd9ae9f1ba029297af8757a4f8c25..4445aafe9d4beee1b4dfc6d27bddde326dd89a94 100644 (file)
@@ -179,5 +179,13 @@ struct tevent_req *tsocket_sendto_send(struct tsocket_context *sock,
                                       const struct tsocket_address *dst);
 ssize_t tsocket_sendto_recv(struct tevent_req *req, int *perrno);
 
+struct tevent_req *tsocket_sendto_queue_send(TALLOC_CTX *mem_ctx,
+                                            struct tsocket_context *sock,
+                                            struct tevent_queue *queue,
+                                            const uint8_t *buf,
+                                            size_t len,
+                                            struct tsocket_address *dst);
+ssize_t tsocket_sendto_queue_recv(struct tevent_req *req, int *perrno);
+
 #endif /* _TSOCKET_H */