tsocket: add tdgram_sendto_queue_send/recv()
[ira/wip.git] / lib / tsocket / tsocket.h
index 077fd1ef35fd39f400c8492a9374c873ffcbbbf2..ec891c34dd2b6b4d794fba939c0f173239674599 100644 (file)
@@ -259,5 +259,18 @@ struct tevent_req *tsocket_readv_send(struct tsocket_context *sock,
                                      void *private_data);
 int tsocket_readv_recv(struct tevent_req *req, int *perrno);
 
+/*
+ * Queue helpers
+ */
+
+struct tevent_req *tdgram_sendto_queue_send(TALLOC_CTX *mem_ctx,
+                                           struct tevent_context *ev,
+                                           struct tdgram_context *dgram,
+                                           struct tevent_queue *queue,
+                                           const uint8_t *buf,
+                                           size_t len,
+                                           struct tsocket_address *dst);
+ssize_t tdgram_sendto_queue_recv(struct tevent_req *req, int *perrno);
+
 #endif /* _TSOCKET_H */