lib/tsocket: add tsocket_connect_send/recv()
[ira/wip.git] / lib / tsocket / tsocket.h
index 4445aafe9d4beee1b4dfc6d27bddde326dd89a94..f7a7d6b61486230388ff36f17a8f1a99f5764130 100644 (file)
@@ -187,5 +187,10 @@ struct tevent_req *tsocket_sendto_queue_send(TALLOC_CTX *mem_ctx,
                                             struct tsocket_address *dst);
 ssize_t tsocket_sendto_queue_recv(struct tevent_req *req, int *perrno);
 
+struct tevent_req *tsocket_connect_send(struct tsocket_context *sock,
+                                       TALLOC_CTX *mem_ctx,
+                                       const struct tsocket_address *dst);
+int tsocket_connect_recv(struct tevent_req *req, int *perrno);
+
 #endif /* _TSOCKET_H */