public class ArtNetClient
extends java.lang.Object
Constructor and Description |
---|
ArtNetClient()
Creates a new ArtNetClient.
|
ArtNetClient(ArtNetBuffer inputBuffer)
Creates a new ArtNetClient.
|
Modifier and Type | Method and Description |
---|---|
void |
broadcastDmx(int subnet,
int universe,
byte[] dmxData)
Send a dmx package as broadcast package.
|
ArtNetServer |
getArtNetServer() |
ArtNetBuffer |
getInputBuffer() |
boolean |
isRunning() |
byte[] |
readDmxData(int subnet,
int universe)
Read dmx data from the buffer implementation.
|
byte[] |
readDmxData(short subnet,
short universe)
Read dmx data from the buffer implementation.
|
void |
setInputBuffer(ArtNetBuffer inputBuffer) |
void |
start()
Start client with default arguments (listen on broadcast).
|
void |
start(java.net.InetAddress networkInterfaceAddress)
Start client with specific network interface address.
|
void |
start(java.lang.String networkInterfaceAddress)
Start client with specific network interface address.
|
void |
stop()
Stops the client and udp server.
|
void |
unicastDmx(ArtNetNode node,
int subnet,
int universe,
byte[] dmxData)
Send a dmx package to a specific unicast address.
|
void |
unicastDmx(java.net.InetAddress address,
int subnet,
int universe,
byte[] dmxData)
Send a dmx package to a specific unicast address.
|
void |
unicastDmx(java.lang.String address,
int subnet,
int universe,
byte[] dmxData)
Send a dmx package to a specific unicast address.
|
public ArtNetClient()
public ArtNetClient(ArtNetBuffer inputBuffer)
inputBuffer
- Input buffer implementation. If null, no data is received.public void start()
public void start(java.lang.String networkInterfaceAddress)
networkInterfaceAddress
- Network interface address to listen to.public void start(java.net.InetAddress networkInterfaceAddress)
networkInterfaceAddress
- Network interface address to listen to.public void stop()
public void broadcastDmx(int subnet, int universe, byte[] dmxData)
subnet
- Receiving subnet.universe
- Receiving universe.dmxData
- Dmx data to send.public void unicastDmx(java.lang.String address, int subnet, int universe, byte[] dmxData)
address
- Receiver address.subnet
- Receiving subnet.universe
- Receiving universe.dmxData
- Dmx data to send.public void unicastDmx(ArtNetNode node, int subnet, int universe, byte[] dmxData)
node
- Receiver node.subnet
- Receiving subnet.universe
- Receiving universe.dmxData
- Dmx data to send.public void unicastDmx(java.net.InetAddress address, int subnet, int universe, byte[] dmxData)
address
- Receiver address.subnet
- Receiving subnet.universe
- Receiving universe.dmxData
- Dmx data to send.public byte[] readDmxData(int subnet, int universe)
subnet
- Subnet to read from.universe
- Universe to read from.public byte[] readDmxData(short subnet, short universe)
subnet
- Subnet to read from.universe
- Universe to read from.public ArtNetServer getArtNetServer()
public boolean isRunning()
public ArtNetBuffer getInputBuffer()
public void setInputBuffer(ArtNetBuffer inputBuffer)