allow reusing netlink socket for inet_diag
commitc478549ea7490de2432ed31ffee37a2bfc1d24f3
authorEric Wong <normalperson@yhbt.net>
Sat, 12 Mar 2011 20:56:15 +0000 (12 12:56 -0800)
committerEric Wong <normalperson@yhbt.net>
Sat, 12 Mar 2011 20:56:50 +0000 (12 20:56 +0000)
treec4998b538dbfe13840bb527952e689c6d213d5c7
parenta4b9c8334e2bc0698f0650d275be0935e86dc13e
allow reusing netlink socket for inet_diag

No need to waste resources on creating/destroying
a socket.
examples/linux-listener-stats.rb
ext/raindrops/linux_inet_diag.c
test/test_inet_diag_socket.rb [new file with mode: 0644]
test/test_linux.rb