public abstract class LXSocketOutput extends LXOutput
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
String |
host |
protected OutputStream |
output |
int |
port |
protected Socket |
socket |
brightness, children, enabled, framesPerSecond, gamma, gammaLut
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Modifier | Constructor and Description |
---|---|
protected |
LXSocketOutput(LX lx,
String host,
int port) |
Modifier and Type | Method and Description |
---|---|
protected void |
didConnect() |
protected void |
didDisconnect(Exception x) |
protected void |
disconnect(Exception x) |
protected abstract byte[] |
getPacketData(int[] colors,
byte[] glut) |
boolean |
isConnected() |
protected void |
onSend(int[] colors,
byte[] glut)
Subclasses implement this to send the data.
|
addChild, error, error, log, onParameterChanged, onSend, removeChild, send
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, dispose, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, load, loadParameters, removeParameter, removeParameter, save, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public final String host
public final int port
protected Socket socket
protected OutputStream output
public boolean isConnected()
protected void didConnect()
protected void disconnect(Exception x)
protected void didDisconnect(Exception x)
protected void onSend(int[] colors, byte[] glut)
LXOutput
protected abstract byte[] getPacketData(int[] colors, byte[] glut)
LX library by Mark C. Slee. © 2012-2020