Send the message and get the reply

This commit is contained in:
2024-03-03 01:29:46 -05:00
parent 2c4cb0e235
commit ec9a78a459

View File

@@ -25,6 +25,14 @@ int main(int argc, char **argv) {
/* command->command = parse_command(argv[2]); */
/* command->args.ls = 5; */
zsock_send(daemon, "b", command, 80);
zmsg_t *msg = zmsg_recv(daemon);
char *res = zmsg_popstr(msg);
printf("Res:\n%s\n", res);
zmsg_destroy(msg);
free(res);
return EXIT_SUCCESS;
}