Class NetBidibPlainTcpPort
- java.lang.Object
-
- org.bidib.jbidibc.net.serialovertcp.NetBidibPlainTcpPort
-
- All Implemented Interfaces:
Runnable,NetBidibPort
public class NetBidibPlainTcpPort extends Object implements NetBidibPort
-
-
Field Summary
-
Fields inherited from interface org.bidib.jbidibc.net.serialovertcp.NetBidibPort
BIDIB_NET_PREFIX, BIDIB_WIZARD_NET_PREFIX
-
-
Constructor Summary
Constructors Constructor Description NetBidibPlainTcpPort(InetAddress address, int portNumber, NetMessageHandler messageReceiver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsend(byte[] sendData, InetAddress address, int portNumber)Send the data to the host.voidstop()Stop the port.
-
-
-
Constructor Detail
-
NetBidibPlainTcpPort
public NetBidibPlainTcpPort(InetAddress address, int portNumber, NetMessageHandler messageReceiver) throws IOException
- Throws:
IOException
-
-
Method Detail
-
stop
public void stop()
Description copied from interface:NetBidibPortStop the port.- Specified by:
stopin interfaceNetBidibPort
-
send
public void send(byte[] sendData, InetAddress address, int portNumber) throws IOExceptionSend the data to the host.- Specified by:
sendin interfaceNetBidibPort- Parameters:
sendData- the data to sendaddress- the receiving address of the hostportNumber- the receiving port number of the host- Throws:
IOException
-
-