diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-14 18:02:25 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-14 18:08:24 +0200 |
commit | b09122e98c0156db0da4eac6d8819f1c41ecd9e1 (patch) | |
tree | 672531e000990214fc692c37d71e1ad82c8584f9 /src/msg.h | |
parent | msg: enforce at least one word (diff) | |
download | cimple-b09122e98c0156db0da4eac6d8819f1c41ecd9e1.tar.gz cimple-b09122e98c0156db0da4eac6d8819f1c41ecd9e1.zip |
msg: add functions for one-off communication
Diffstat (limited to 'src/msg.h')
-rw-r--r-- | src/msg.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 *); |