public abstract class LXDatagram extends LXBufferOutput implements LXOutput.InetOutput
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | LXDatagram.ErrorState | 
LXBufferOutput.ByteOrderLXOutput.GammaMode, LXOutput.InetOutputLXComponent.Placeholder, LXComponent.RenamableLXSerializable.Utils| Modifier and Type | Field and Description | 
|---|---|
| protected byte[] | buffer | 
| BooleanParameter | errorWhether this datagram is in an error state | 
byteOrder, byteOrderBuffer, indexBufferbrightness, enabled, framesPerSecond, gamma, gammaModecontrolSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColorNO_PORT| Modifier | Constructor and Description | 
|---|---|
| protected  | LXDatagram(LX lx,
          int[] indexBuffer,
          int datagramSize) | 
| protected  | LXDatagram(LX lx,
          int[] indexBuffer,
          LXBufferOutput.ByteOrder byteOrder,
          int datagramSize) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | dispose()Invoked when the datagram is no longer needed. | 
| InetAddress | getAddress()Gets the address this datagram sends to | 
| byte[] | getDataBuffer()Returns the data buffer | 
| protected LXDatagram.ErrorState | getErrorState() | 
| int | getPort()Gets the destination port number this datagram is sent to | 
| protected void | onSend(int[] colors,
      byte[] glut)Invoked by engine to send this packet when new color data is available. | 
| LXDatagram | setAddress(InetAddress address)Sets the destination address of this datagram | 
| LXDatagram | setPort(int port)Sets the destination port number to send this datagram to | 
| LXDatagram | setSocket(DatagramSocket socket) | 
| protected void | updateSequenceNumber()Subclasses may override to update a sequence number in the packet when
 appropriate as part of the protocol. | 
| protected void | validateBufferSize() | 
getDataBufferOffset, setByteOrder, setByteOrder, updateDataBuffer, updateIndexBuffererror, error, getGammaLut, log, onParameterChanged, onSend, send, send, setGammaDelegate, setGroupaddArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, load, loadParameters, removeParameter, removeParameter, save, saveParameters, setParent, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameterprotected final byte[] buffer
public final BooleanParameter error
protected LXDatagram(LX lx, int[] indexBuffer, int datagramSize)
protected LXDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, int datagramSize)
protected void validateBufferSize()
public LXDatagram setSocket(DatagramSocket socket)
protected LXDatagram.ErrorState getErrorState()
public LXDatagram setAddress(InetAddress address)
setAddress in interface LXOutput.InetOutputaddress - Destination addresspublic InetAddress getAddress()
getAddress in interface LXOutput.InetOutputpublic LXDatagram setPort(int port)
setPort in interface LXOutput.InetOutputport - Port numberpublic int getPort()
getPort in interface LXOutput.InetOutputpublic byte[] getDataBuffer()
getDataBuffer in class LXBufferOutputprotected void updateSequenceNumber()
protected void onSend(int[] colors,
                      byte[] glut)
public void dispose()
dispose in class LXComponentLX library by Mark C. Slee. © 2012-2020