#include #include "msg.h" #include "msg_test.h" int main(int argc, char **argv) { struct connection_t *c; int nums[NUM_ELEMS], i; c = wait_for_connection(argv[1]); recv_message(c, NUM_ELEMS, nums); for (i = 0; i < NUM_ELEMS; i++) printf("%d\n", nums[i]); nums[0] = 100; send_message(c, 1, nums); close_connection(c); return 0; }