class Miniss::Sockets
- Miniss::Sockets
- Reference
- Object
Overview
Sockets object has properties containing arrays of Sockets
from the parsed
/proc/net/xxx
files.
Example:
sockets = Miniss::Sockets.new
sockets.tcpv4.each do |so|
puts "#{so.laddr} <-> #{so.raddr}"
end
Defined in:
miniss/addr.crConstructors
Instance Method Summary
-
#all
Returns all sockets
-
#parse_tcpv4 : Array(Socket)
Parse all IPv4 TCP sockets from
/proc/net/tcp
. -
#parse_tcpv6 : Array(Socket)
Parse all IPv6 TCP sockets from
/proc/net/tcp6
. -
#parse_udpv4 : Array(Socket)
Parse all IPv4 UDP sockets from
/proc/net/udp
. -
#parse_udpv6 : Array(Socket)
Parse all IPv6 UDP sockets from
/proc/net/udp6
. -
#tcpv4 : Array(Socket)
Returns all IPv4 TCP sockets
-
#tcpv6 : Array(Socket)
Returns all IPv6 TCP sockets
-
#udpv4 : Array(Socket)
Returns all IPv4 UDP sockets
-
#udpv6 : Array(Socket)
Returns all IPv6 UDP sockets