Class NetBidibServerPlainTcpPort
- java.lang.Object
-
- org.bidib.jbidibc.net.serialovertcp.NetBidibServerPlainTcpPort
-
- All Implemented Interfaces:
Runnable,NetBidibPort
public class NetBidibServerPlainTcpPort 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 NetBidibServerPlainTcpPort(int portNumber, InetAddress bindAddress, NetMessageHandler messageReceiver)Creates a new instance ofNetBidibServerTcpPort.
-
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
-
NetBidibServerPlainTcpPort
public NetBidibServerPlainTcpPort(int portNumber, InetAddress bindAddress, NetMessageHandler messageReceiver) throws IOExceptionCreates a new instance ofNetBidibServerTcpPort.- Parameters:
portNumber- the port numberbindAddress- the (optional) bind addressmessageReceiver- the message receiver- 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 IOExceptionDescription copied from interface:NetBidibPortSend 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
-
-