diff options
Diffstat (limited to 'perf/remote_lat.cpp')
-rw-r--r-- | perf/remote_lat.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/perf/remote_lat.cpp b/perf/remote_lat.cpp index f353ed6..0d438e9 100644 --- a/perf/remote_lat.cpp +++ b/perf/remote_lat.cpp @@ -75,14 +75,14 @@ int main (int argc, char *argv []) watch = zmq_stopwatch_start (); for (i = 0; i != roundtrip_count; i++) { - rc = zmq_send (s, &msg, 0); - if (rc != 0) { - printf ("error in zmq_send: %s\n", zmq_strerror (errno)); + rc = zmq_sendmsg (s, &msg, 0); + if (rc < 0) { + printf ("error in zmq_sendmsg: %s\n", zmq_strerror (errno)); return -1; } - rc = zmq_recv (s, &msg, 0); - if (rc != 0) { - printf ("error in zmq_recv: %s\n", zmq_strerror (errno)); + rc = zmq_recvmsg (s, &msg, 0); + if (rc < 0) { + printf ("error in zmq_recvmsg: %s\n", zmq_strerror (errno)); return -1; } if (zmq_msg_size (&msg) != message_size) { |