public class RawPduEvent
extends java.util.EventObject
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
consumed |
| Constructor and Description |
|---|
RawPduEvent(java.lang.Object source,
int v,
java.lang.String hn,
byte[] mess,
int prt)
The constructor for an undecoded pdu event.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()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()