Klasse IncomingDatagramMessage<O extends UpnpOperation>

java.lang.Object
org.jupnp.model.message.UpnpMessage<O>
org.jupnp.model.message.IncomingDatagramMessage<O>
Bekannte direkte Unterklassen:
IncomingNotificationRequest, IncomingSearchRequest, IncomingSearchResponse

public class IncomingDatagramMessage<O extends UpnpOperation> extends UpnpMessage<O>
A received UDP datagram request or response message, with source address and port.

Additionally, holds a local address that is reachable from the source address (in the same subnet):

  • When an M-SEARCH is received, we send a LOCATION header back with a reachable (by the remote control point) local address.
  • When a NOTIFY discovery message (can be a search response) is received we need to memorize on which local address it was received, so that the we can later give the remote device a reachable (from its point of view) local GENA callback address.
Autor:
Christian Bauer
  • Konstruktordetails

    • IncomingDatagramMessage

      public IncomingDatagramMessage(O operation, InetAddress sourceAddress, int sourcePort, InetAddress localAddress)
    • IncomingDatagramMessage

      protected IncomingDatagramMessage(IncomingDatagramMessage<O> source)
  • Methodendetails

    • getSourceAddress

      public InetAddress getSourceAddress()
    • getSourcePort

      public int getSourcePort()
    • getLocalAddress

      public InetAddress getLocalAddress()