public class UDPCachedMessage
extends java.lang.Object
Constructor and Description |
---|
UDPCachedMessage(de.sciss.net.OSCMessage msg)
Make a cached UDP message to stop having to allocate and deallocate.
|
Modifier and Type | Method and Description |
---|---|
de.sciss.net.OSCMessage |
getCachedMessage()
The cached OSC Message
|
java.net.DatagramPacket |
getCachedPacket()
Get the cached packet
|
java.net.DatagramPacket |
setMessage(de.sciss.net.OSCMessage msg)
We will compare current message the new one.
|
public UDPCachedMessage(de.sciss.net.OSCMessage msg) throws java.io.IOException
msg
- the OSC message we want to cachejava.io.IOException
- Address errorpublic java.net.DatagramPacket setMessage(de.sciss.net.OSCMessage msg) throws java.io.IOException
msg
- the OSC Messagejava.io.IOException
- exception if unable to create the addresspublic java.net.DatagramPacket getCachedPacket()
public de.sciss.net.OSCMessage getCachedMessage()