From b09122e98c0156db0da4eac6d8819f1c41ecd9e1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 14 May 2023 18:02:25 +0200 Subject: msg: add functions for one-off communication --- src/msg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/msg.h') diff --git a/src/msg.h b/src/msg.h index 158c5e6..19a204d 100644 --- a/src/msg.h +++ b/src/msg.h @@ -30,7 +30,9 @@ int msg_is_error(const struct msg *); int msg_recv(int fd, struct msg **); int msg_send(int fd, const struct msg *); -int msg_send_and_wait(int fd, const struct msg *, struct msg **response); +int msg_communicate(int fd, const struct msg *, struct msg **response); +int msg_connect_and_communicate(const char *host, const char *port, const struct msg *, + struct msg **); void msg_dump(const struct msg *); -- cgit v1.2.3