public class RawPduReceivedSupport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version_id |
Constructor and Description |
---|
RawPduReceivedSupport(java.lang.Object src)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addRawPduListener(RawPduListener listener)
Adds the specified pdu listener to receive pdus.
|
void |
empty()
Removes all the listeners.
|
boolean |
fireRawPduReceived(int version,
java.lang.String hostAddress,
int hostPort,
byte[] message)
Fires an undecoded pdu event.
|
int |
getListenerCount()
Returns the number of listeners.
|
void |
removeRawPduListener(RawPduListener listener)
Removes the specified pdu listener.
|
public static final java.lang.String version_id
public RawPduReceivedSupport(java.lang.Object src)
src
- The source (ListeningContext) of the pdu events when they are fired.public void empty()
public int getListenerCount()
public void addRawPduListener(RawPduListener listener)
public void removeRawPduListener(RawPduListener listener)
public boolean fireRawPduReceived(int version, java.lang.String hostAddress, int hostPort, byte[] message)
version
- The SNMP version of the pduhostAddress
- The IP address of the host where the pdu came fromhostPort
- The remote port number of the host where the pdu came frommessage
- The pdu in bytes