Class LXSocket

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

public abstract class LXSocket extends LXBufferOutput implements LXOutput.InetOutput
  • Field Details

  • Constructor Details

    • LXSocket

      protected LXSocket(LX lx, int[] indexBuffer)
    • LXSocket

      protected LXSocket(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder)
    • LXSocket

      protected LXSocket(LX lx, IndexBuffer indexBuffer)
  • Method Details

    • setConnectTimeout

      public LXSocket setConnectTimeout(int connectTimeoutMs)
    • setAddress

      public LXSocket setAddress(InetAddress address)
      Specified by:
      setAddress in interface LXOutput.InetOutput
    • getAddress

      public InetAddress getAddress()
      Specified by:
      getAddress in interface LXOutput.InetOutput
    • setPort

      public LXSocket setPort(int port)
      Specified by:
      setPort in interface LXOutput.InetOutput
    • getPort

      public int getPort()
      Specified by:
      getPort in interface LXOutput.InetOutput
    • isConnected

      public boolean isConnected()
    • didConnect

      protected void didConnect()
      Subclasses may override to take additional actions upon successful connection
    • disconnect

      protected void disconnect(Exception x)
    • didDisconnect

      protected void didDisconnect(Exception x)
      Subclasses may override to take additional actions upon disconnection
      Parameters:
      x - Exception that caused the disconnect if there was one
    • onSend

      protected void onSend(int[] colors, LXOutput.GammaTable glut, double brightness)
      Description copied from class: LXOutput
      Subclasses implement this to send the data.
      Specified by:
      onSend in class LXOutput
      Parameters:
      colors - Color values
      glut - Look-up table for 0-255 brightness curves
      brightness - Master brightness value
    • getPacketData

      protected byte[] getPacketData(int[] colors, LXOutput.GammaTable glut, double brightness)