Am uses nanomsg library with
int sock = nn_socket (AF_SP, NN_PAIR);
assert (nn_bind (sock, url)> = 0);
Now I want to know how to distinguish each connection on the server if the client connects.
In a regular Linux TCP Socket, we will get a new fd socket for each accept connection, I expect something similar in nanomsg.
In the bottom link I am trying to use - Pair (Two Way Radio)
http://tim.dysinger.net/posts/2013-09-16-getting-started-with-nanomsg.html
source
share