Merge commit 'master/master' into wspp-schema
[ira/wip.git] / lib / tsocket / tsocket.h
index 2456062b47ef24968929100ec8099ed3d492569e..9bcfb5cb7efc5f155cb3b30b330d9ff278a2b58c 100644 (file)
@@ -198,5 +198,23 @@ struct tevent_req *tsocket_writev_send(struct tsocket_context *sock,
                                       size_t count);
 int tsocket_writev_recv(struct tevent_req *req, int *perrno);
 
+struct tevent_req *tsocket_writev_queue_send(TALLOC_CTX *mem_ctx,
+                                            struct tsocket_context *sock,
+                                            struct tevent_queue *queue,
+                                            const struct iovec *vector,
+                                            size_t count);
+int tsocket_writev_queue_recv(struct tevent_req *req, int *perrno);
+
+typedef int (*tsocket_readv_next_iovec_t)(struct tsocket_context *sock,
+                                         void *private_data,
+                                         TALLOC_CTX *mem_ctx,
+                                         struct iovec **vector,
+                                         size_t *count);
+struct tevent_req *tsocket_readv_send(struct tsocket_context *sock,
+                                     TALLOC_CTX *mem_ctx,
+                                     tsocket_readv_next_iovec_t next_iovec_fn,
+                                     void *private_data);
+int tsocket_readv_recv(struct tevent_req *req, int *perrno);
+
 #endif /* _TSOCKET_H */