summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 5a6f69e..41c71e5 100644
--- a/utils.h
+++ b/utils.h
@@ -52,6 +52,11 @@ struct uring_task;
void socket_set_low_latency(struct cfg *cfg, int sfd);
+void connection_set_local(struct cfg *cfg, struct connection *conn, int fd);
+
+void connection_set_remote(struct cfg *cfg, struct connection *conn,
+ struct sockaddr_in46 *remote);
+
void connect_any(struct cfg *cfg, struct uring_task *task,
struct list_head *addrs, struct connection *conn,
void (*callback)(struct cfg *, struct connection *, int res));