Go to the documentation of this file.
3 #include "../include/zmq.h"
8 const char server_prvkey[] =
"{X}#>t#jRGaQ}gMhv=30r(Mw+87YGs+5%kh=i@f8";
10 int main (
int argc,
char *argv[])
21 unsigned long elapsed;
26 if (argc != 4 && argc != 5) {
27 printf (
"usage: local_thr <bind-to> <message-size> <message-count> "
28 "[<enable_curve>]\n");
34 if (argc >= 5 && atoi (argv[4])) {
85 printf (
"message of incorrect size received\n");
98 printf (
"message of incorrect size received\n");
113 throughput = ((double)
message_count / (
double) elapsed * 1000000);
114 megabits = ((double) throughput *
message_size * 8) / 1000000;
118 printf (
"mean throughput: %d [msg/s]\n", (
int) throughput);
119 printf (
"mean throughput: %.3f [Mb/s]\n", (
double) megabits);
const ZMQ_EXPORT char * zmq_strerror(int errnum_)
#define ZMQ_CURVE_SECRETKEY
ZMQ_EXPORT size_t zmq_msg_size(const zmq_msg_t *msg_)
static size_t message_size
ZMQ_EXPORT int zmq_setsockopt(void *s_, int option_, const void *optval_, size_t optvallen_)
ZMQ_EXPORT void * zmq_stopwatch_start(void)
ZMQ_EXPORT int zmq_bind(void *s_, const char *addr_)
ZMQ_EXPORT void * zmq_socket(void *, int type_)
ZMQ_EXPORT int zmq_msg_init(zmq_msg_t *msg_)
ZMQ_EXPORT int zmq_close(void *s_)
ZMQ_EXPORT int zmq_recvmsg(void *s_, zmq_msg_t *msg_, int flags_)
int main(int argc, char *argv[])
ZMQ_EXPORT void * zmq_init(int io_threads_)
const char server_prvkey[]
ZMQ_EXPORT int zmq_ctx_term(void *context_)
ZMQ_EXPORT int zmq_msg_close(zmq_msg_t *msg_)
ZMQ_EXPORT unsigned long zmq_stopwatch_stop(void *watch_)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:55