Send the message and get the reply
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user