snmp 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +4 -0
- data/Rakefile +1 -1
- data/lib/snmp/manager.rb +6 -5
- metadata +5 -3
data/README
CHANGED
@@ -9,6 +9,10 @@ that Ruby can run.
|
|
9
9
|
|
10
10
|
See snmplib.rubyforge.org[http://snmplib.rubyforge.org/] for more info.
|
11
11
|
|
12
|
+
Version 0.5.1 fixes bugs #2054 and #2164. Responses were ignored if they did
|
13
|
+
not come back from the same host that the request was sent to. This behavior
|
14
|
+
causes problems for some multi-homed hosts.
|
15
|
+
|
12
16
|
Version 0.5.0 of this software supports the following:
|
13
17
|
|
14
18
|
* The GetRequest, GetNextRequest, GetBulkRequest, SetRequest, and Response
|
data/Rakefile
CHANGED
data/lib/snmp/manager.rb
CHANGED
@@ -24,17 +24,18 @@ class RequestTimeout < RuntimeError; end
|
|
24
24
|
class UDPTransport
|
25
25
|
def initialize(host, port)
|
26
26
|
@socket = UDPSocket.open
|
27
|
-
@
|
27
|
+
@host = host
|
28
|
+
@port = port
|
28
29
|
end
|
29
|
-
|
30
|
+
|
30
31
|
def close
|
31
32
|
@socket.close
|
32
33
|
end
|
33
|
-
|
34
|
+
|
34
35
|
def send(data)
|
35
|
-
@socket.send(data, 0)
|
36
|
+
@socket.send(data, 0, @host, @port)
|
36
37
|
end
|
37
|
-
|
38
|
+
|
38
39
|
def recv(max_bytes)
|
39
40
|
@socket.recv(max_bytes)
|
40
41
|
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: snmp
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
7
|
-
date: 2005-
|
6
|
+
version: 0.5.1
|
7
|
+
date: 2005-07-28 00:00:00 -04:00
|
8
8
|
summary: A Ruby implementation of SNMP (the Simple Network Management Protocol).
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -24,6 +24,8 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
24
24
|
version: 0.0.0
|
25
25
|
version:
|
26
26
|
platform: ruby
|
27
|
+
signing_key:
|
28
|
+
cert_chain:
|
27
29
|
authors:
|
28
30
|
- Dave Halliday
|
29
31
|
files:
|