Object
# File lib/snmp/manager.rb, line 525 def initialize(host, port, address_family) @socket = UDPSocket.open(address_family) @socket.bind(host, port) end
# File lib/snmp/manager.rb, line 530 def close @socket.close end
# File lib/snmp/manager.rb, line 538 def recvfrom(max_bytes) data, host_info = @socket.recvfrom(max_bytes) flags, host_port, host_name, host_ip = host_info return data, host_ip, host_port end
# File lib/snmp/manager.rb, line 534 def send(data, host, port) @socket.send(data, 0, host, port) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.