| Class | SNMP::UDPServerTransport |
| In: |
lib/snmp/manager.rb
|
| Parent: | Object |
# File lib/snmp/manager.rb, line 498 def initialize(host, port) @socket = UDPSocket.open @socket.bind(host, port) end
# File lib/snmp/manager.rb, line 511 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