kgio 2.3.0 - MSG_PEEK and poll(2) supportv2.3.0
commitf74bcf37ed31611d14aba2d4b4518c6a3dea0f40
authorEric Wong <normalperson@yhbt.net>
Wed, 9 Feb 2011 10:10:36 +0000 (9 10:10 +0000)
committerEric Wong <normalperson@yhbt.net>
Wed, 9 Feb 2011 10:10:36 +0000 (9 10:10 +0000)
tree7bc4e2a472bd812bd7489261d1e1832ac53fad66
parent00d1bc89ed3811701195bf5ddb400a0a0067126f
kgio 2.3.0 - MSG_PEEK and poll(2) support

recv() with MSG_PEEK for sockets is added with the try*
interface.  SocketMethods#kgio_trypeek and
SocketMethods#kgio_peek or Kgio.trypeek for non-Kgio-enabled
sockets.

For Ruby 1.9 only: poll(2) is exposed via the Kgio.poll
singleton method and should provide an alternative for IO.select
users.

Both of these new features should work well on modern Unix-like
operating systems.
GIT-VERSION-GEN