Class OPCSocket

All Implemented Interfaces:
LXPath, LXSerializable, LXOutput.InetOutput, OPCOutput, LXParameterListener
Direct Known Subclasses:
FadecandySocket

public class OPCSocket extends LXSocket implements OPCOutput
TCP/IP streaming socket implementation of http://openpixelcontrol.org/
  • Constructor Details

    • OPCSocket

      public OPCSocket(LX lx)
    • OPCSocket

      public OPCSocket(LX lx, LXModel model)
    • OPCSocket

      public OPCSocket(LX lx, int[] indexBuffer)
    • OPCSocket

      public OPCSocket(LX lx, int[] indexBuffer, byte opcChannel)
    • OPCSocket

      public OPCSocket(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder)
    • OPCSocket

      public OPCSocket(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, byte opcChannel)
    • OPCSocket

      public OPCSocket(LX lx, IndexBuffer indexBuffer, byte opcChannel)
  • Method Details

    • setChannel

      public OPCSocket setChannel(byte channel)
      Specified by:
      setChannel in interface OPCOutput
    • getDataBuffer

      protected byte[] getDataBuffer()
      Description copied from class: LXBufferOutput
      Subclasses should provide a handle to a raw byte buffer
      Specified by:
      getDataBuffer in class LXBufferOutput
      Returns:
      Raw byte buffer for output data
    • getDataBufferOffset

      protected int getDataBufferOffset()
      Description copied from class: LXBufferOutput
      Offset into raw byte buffer where color data is written
      Specified by:
      getDataBufferOffset in class LXBufferOutput
      Returns:
      Offset into raw byte buffer for color data