[nanomsg] nn_poll() implemented

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg <nanomsg@xxxxxxxxxxxxx>
  • Date: Sun, 24 Nov 2013 10:11:47 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all!

I've implemented nn_poll() function mimicking the POSIX poll()
function, except that it works for nanomsg sockets. It can be found at
github master branch.

It should be noted that NN_RCVFD and NN_SNDFD socket options are still
the preferred way to do polling. The function is meant to be used
specifically by the language bindings for languages that don't allow
for manipulation of raw file descriptors.

As for languages that allow for polling on raw file descriptors,
there's no need to expose nn_poll() via the language binding.

Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSkcLPAAoJENTpVjxCNN9YtOEH/1h/jSxprzQ4fgJyG3vl0RTg
aa169FzDeOeUrMoPu2xaU+6SMoLt7vpUTInC9JYzQaxDOgi19ZJPlivcaObWhby9
pYd+r2tVh+HAsutDQ3qDThn2NT2RPlk3w4I8aMxutsBrkb5DoxYbov12rRSbjsJY
lJAo0ZF+JZ8Wc2F38+u9S42QC99MX1rr1XmJcLc8Xpg1VWXZxl9lUBi2Zh7G6qgQ
jXlcqFs2S2wO2g1Rcxeiuxx+CGPm5LMknsfW8vjFpS+aOpSbg8B89RP1F+jMjyzM
rC1NvXrgJtKITwJvKXCAIcUH9w2rQiJu21iOqMo9nQaDK2zL8qNkNSUTRyc79qI=
=9JlP
-----END PGP SIGNATURE-----

Other related posts:

  • » [nanomsg] nn_poll() implemented - Martin Sustrik