Class: Raindrops::InetDiagSocket
- Inherits:
-
IDSock
- Object
- IDSock
- Raindrops::InetDiagSocket
- Defined in:
- ext/raindrops/linux_inet_diag.c,
ext/raindrops/linux_inet_diag.c
Overview
This is a subclass of Socket
specifically for talking to the inet_diag facility of Netlink.
Class Method Summary collapse
-
.new ⇒ Object
Raindrops::InetDiagSocket.new -> Socket.
Class Method Details
.new ⇒ Object
Raindrops::InetDiagSocket.new -> Socket
Creates a new Socket object for the netlink inet_diag facility
109 110 111 112 113 114 115 116 117 118 |
# File 'ext/raindrops/linux_inet_diag.c', line 109
static VALUE ids_s_new(VALUE klass)
{
VALUE argv[3];
argv[0] = INT2NUM(AF_NETLINK);
argv[1] = INT2NUM(my_SOCK_RAW);
argv[2] = INT2NUM(NETLINK_INET_DIAG);
return FORCE_CLOEXEC(rb_call_super(3, argv));
}
|