Package org.snmp4j.transport
Interface TransportListener
- All Known Subinterfaces:
MessageDispatcher
- All Known Implementing Classes:
MessageDispatcherImpl
,MultiThreadedMessageDispatcher
public interface TransportListener
The
TransportListener
interface is implemented by objects
that process incoming messages from TransportMapping
s, for
example MessageDispatcher
.- Since:
- 1.6
- Version:
- 2.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processMessage
(TransportMapping sourceTransport, Address incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) Processes an incoming message.
-
Method Details
-
processMessage
void processMessage(TransportMapping sourceTransport, Address incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) Processes an incoming message.- Parameters:
sourceTransport
- aTransportMapping
instance denoting the transport that received the message and that will be used to send any responses to this message. ThesourceTransport
has to support theincomingAddress
's implementation class.incomingAddress
- theAddress
from which the message has been received.wholeMessage
- anByteBuffer
containing the received message.tmStateReference
- the transport model state reference as defined by RFC 5590.- Since:
- 1.6
-