Could you tell me on library Zmq (She same 0mq, and she same Zeromq)

I use the code from the example:

void *context = zmq_init (1); void *responder = zmq_socket (context, ZMQ_REP); zmq_bind (responder, "tcp://192.168.5.241:5551"); zmq_msg_t reply; zmq_msg_init_size (&reply, 5); memcpy (zmq_msg_data (&reply), "World", 5); zmq_send (responder, &reply, 0); zmq_msg_close (&reply); zmq_close (responder); zmq_term (context); 

The server does not receive the message receiver, please take into account the fact that it is configured correctly and there should not be any problems in it.

  • and we have to believe that it is all properly configured and working? - KoVadim
  • The server is checked by other software using zeromq - Nikola Krivosheya
  • OK, let's say it works there. Do you have a guarantee that there is the same port / ip, and the same type of socket? - KoVadim
  • 100% Guarantee - Nicola Krivosheya
  • on the server, I understand ZMQ_REP ? then on the client you need ZMQ_REQ . - KoVadim

0