Interface NetMessageHandler
-
- All Known Implementing Classes:
DefaultNetMessageHandler
public interface NetMessageHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidacceptClient(String remoteHost)Accept new client.voidcleanup(String remoteHost)Cleanup the connection of the client.voidreceive(DataPacket packet)Receive messages from the configured portvoidsend(NetBidibPort port, byte[] bytes)Send data to the port.
-
-
-
Method Detail
-
receive
void receive(DataPacket packet)
Receive messages from the configured port- Parameters:
packet- the received data
-
send
void send(NetBidibPort port, byte[] bytes)
Send data to the port.- Parameters:
port- the portbytes- the data
-
acceptClient
void acceptClient(String remoteHost)
Accept new client.- Parameters:
remoteHost- the host
-
cleanup
void cleanup(String remoteHost)
Cleanup the connection of the client.- Parameters:
remoteHost-
-
-