|
SNMP Stack 5_1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--uk.co.westhawk.snmp.event.RawPduEvent
The RawPduEvent class. This class is delivered when a undecoded pdu is received.
| Field Summary | |
protected boolean |
consumed
|
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
RawPduEvent(java.lang.Object source,
int v,
java.lang.String hn,
byte[] mess,
int prt)
The constructor for an undecoded pdu event. |
|
| Method Summary | |
void |
consume()
Consumes this event so that it will not be sent to any other listeners. |
java.lang.String |
getHostAddress()
The IP address of the host where the pdu came from. |
int |
getHostPort()
The remote port number of the host where the pdu came from. |
byte[] |
getMessage()
The pdu SNMP message in bytes. |
int |
getVersion()
The SNMP version number of the pdu. |
boolean |
isConsumed()
Returns whether or not this event has been consumed. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean consumed
| Constructor Detail |
public RawPduEvent(java.lang.Object source,
int v,
java.lang.String hn,
byte[] mess,
int prt)
source - The source (ListeningContext) of the eventv - The SNMP version of the pduhn - The IP address of the host where the pdu came fromprt - The remote port number of the host where the pdu came frommess - The pdu in bytesgetVersion(),
getHostAddress(),
getHostPort(),
getMessage()| Method Detail |
public int getVersion()
getHostAddress(),
getMessage(),
SnmpConstants.SNMP_VERSION_1,
SnmpConstants.SNMP_VERSION_2c,
SnmpConstants.SNMP_VERSION_3public java.lang.String getHostAddress()
getVersion(),
getMessage()public byte[] getMessage()
getVersion(),
getHostAddress()public int getHostPort()
getVersion(),
getMessage()public void consume()
public boolean isConsumed()
consume()
|
SNMP Stack 5_1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||