Package 

Class ChannelDataMessageEvent

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class ChannelDataMessageEvent
    extends EventObject
                        

    The class is used to dispatch incoming ChannelData messages. Apart from the message itself one could also obtain the address from where the message is coming (used by a server implementation to determine the mapped address) as well as the Descriptor of the NetAccessPoint that received it (In case the stack is used on more than one ports/addresses).

    • Constructor Detail

      • ChannelDataMessageEvent

        ChannelDataMessageEvent(StunStack stunStack, TransportAddress remoteAddress, TransportAddress localAddress, ChannelData channelDataMessage)
        Initializes a new ChannelDataMessageEvent associated with a specific ChannelData Message.
        Parameters:
        stunStack - the StunStack to be associated with the new instance.
        remoteAddress - the TransportAddress which is to be reported as the source of the new event.
        localAddress - the TransportAddress which is to be reported as the receiving location of the new event.
        channelDataMessage - the ChannelData Message associated with the new event.