mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-22 16:02:31 +02:00
python binding functional
This commit is contained in:
@@ -41,13 +41,12 @@ int main (int argc, char *argv [])
|
||||
double megabits;
|
||||
|
||||
if (argc != 4) {
|
||||
printf ("usage: local_thr <bind-to> <message-count> "
|
||||
"<message-size>\n");
|
||||
printf ("usage: local_thr <bind-to> <message-size> <message-count>\n");
|
||||
return 1;
|
||||
}
|
||||
bind_to = argv [1];
|
||||
message_count = atoi (argv [2]);
|
||||
message_size = atoi (argv [3]);
|
||||
message_size = atoi (argv [2]);
|
||||
message_count = atoi (argv [3]);
|
||||
|
||||
ctx = zmq_init (1, 1);
|
||||
assert (ctx);
|
||||
@@ -92,6 +91,9 @@ int main (int argc, char *argv [])
|
||||
printf ("mean throughput: %d [msg/s]\n", (int) throughput);
|
||||
printf ("mean throughput: %.3f [Mb/s]\n", (double) megabits);
|
||||
|
||||
rc = zmq_close (s);
|
||||
assert (rc == 0);
|
||||
|
||||
rc = zmq_term (ctx);
|
||||
assert (rc == 0);
|
||||
|
||||
|
Reference in New Issue
Block a user