|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatagramProcessor
Reads and creates UDP datagrams from and into UPnP messages.
An implementation of this interface has to be thread-safe.
Method Summary | |
---|---|
IncomingDatagramMessage |
read(InetAddress receivedOnAddress,
DatagramPacket datagram)
Reads the datagram and instantiates a message. |
DatagramPacket |
write(OutgoingDatagramMessage message)
Creates a UDP datagram with the content of a message. |
Method Detail |
---|
IncomingDatagramMessage read(InetAddress receivedOnAddress, DatagramPacket datagram) throws UnsupportedDataException
The message is either a UpnpRequest
or
a UpnpResponse
operation type.
receivedOnAddress
- The address of the socket on which this datagram was received.datagram
- The received UDP datagram.
UnsupportedDataException
- If the datagram could not be read, or didn't contain required data.DatagramPacket write(OutgoingDatagramMessage message) throws UnsupportedDataException
The outgoing message might be a UpnpRequest
or a
UpnpResponse
.
message
- The outgoing datagram message.
UnsupportedDataException
- If the datagram could not be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |