Closed wrobell closed 8 years ago
I have just read the nn_socket
man page more carefully
Note that file descriptors returned by nn_socket function are not standard file descriptors and will exhibit undefined behaviour when used with system functions. Moreover, it may happen that a system file descriptor and file descriptor of an SP socket will incidentally collide (be equal).
http://nanomsg.org/v1.0.0/nn_socket.3.html
This issue is invalid.
According to
nn_socket
man page, the function returns file descriptor, soSocket.sock
attribute should reflect this.If we run
The
0
will be printed.strace
gives the following in its output for above scriptSo
Socket.sock
should be7
, not0
.