D
- The type of data that the DataPipe instance communicates.public class SocketDataPipe<Data extends java.io.Serializable> extends DataPipe<Data,java.lang.String>
Constructor and Description |
---|
SocketDataPipe(int port)
Basic constructor for Datapipes
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this data pipe.
|
void |
initReceiver()
Initializes the data pipe by starting a thread to run the
receiver daemon routines.
|
void |
sendData(java.util.List<Data> data_list,
java.lang.String ip_address)
Send data_list to a specified IP address.
|
addDataReceivedListener, sendData, sendData, sendData, sendDataThreaded, sendDataThreaded, setConnectExceptionListener, setExceptionListener, setReceiveExceptionListener, setReceiverDaemon, setSendExceptionListener
public SocketDataPipe(int port)
port
- the port number to usepublic void initReceiver()
initReceiver
in class DataPipe<Data extends java.io.Serializable,java.lang.String>
public void close()
public void sendData(java.util.List<Data> data_list, java.lang.String ip_address)