public class PeerUdpMessageEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
A dummy version UID to suppress warnings.
|
private StunStack |
stunStack
The StunStack associated with this instance.
|
private RawMessage |
udpMessage
The Peer UDP Message associated with this event.
|
source
Constructor and Description |
---|
PeerUdpMessageEvent(StunStack stunStack,
RawMessage udpMessage)
Initializes a new PeerUdpMessageEvent associated with a
specific PeerUdp Message.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Returns the message itself.
|
TransportAddress |
getLocalAddress()
Returns the address that this message was received on.
|
int |
getMessageLength()
Returns the message length.
|
TransportAddress |
getRemoteAddress()
Returns the address and port of the host that sent the message
|
StunStack |
getStunStack()
Gets the StunStack associated with this instance.
|
getSource, toString
private static final long serialVersionUID
private final StunStack stunStack
private final RawMessage udpMessage
public PeerUdpMessageEvent(StunStack stunStack, RawMessage udpMessage)
stunStack
- the StunStack to be associated with the new
instance.udpMessage
- the Peer UDP Message associated
with the new event.public byte[] getBytes()
public int getMessageLength()
public TransportAddress getRemoteAddress()
public TransportAddress getLocalAddress()
public StunStack getStunStack()
Copyright © 2018. All rights reserved.