aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/msg.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-14 18:02:25 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-14 18:08:24 +0200
commitb09122e98c0156db0da4eac6d8819f1c41ecd9e1 (patch)
tree672531e000990214fc692c37d71e1ad82c8584f9 /src/msg.h
parentmsg: enforce at least one word (diff)
downloadcimple-b09122e98c0156db0da4eac6d8819f1c41ecd9e1.tar.gz
cimple-b09122e98c0156db0da4eac6d8819f1c41ecd9e1.zip
msg: add functions for one-off communication
Diffstat (limited to '')
-rw-r--r--src/msg.h4
1 files changed, 3 insertions, 1 deletions
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 *);