org.inria.myriads.snoozenode.monitoring.datasender.api.impl
public class TCPDataSender extends Object implements DataSender
Constructor and Description |
---|
TCPDataSender(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress)
TCP data sender constructor.
|
public TCPDataSender(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress) throws IOException
networkAddress
- The network addressIOException
- The I/O exceptionpublic void send(Object data) throws IOException
send
in interface DataSender
data
- The data objectIOException
- The I/O exceptionpublic void close()
close
in interface DataSender
public void send(Object data, String senderId) throws IOException
DataSender
send
in interface DataSender
data
- The data to sendsenderId
- The sender IdIOException
- ExceptionCopyright © 2013. All Rights Reserved.