org.bidib.jbidibc.net.serialovertcp.NetMessageHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbidibc-net-serial-over-tcp Show documentation
Show all versions of jbidibc-net-serial-over-tcp Show documentation
jBiDiB jbidibc Net Serial over TCP POM
The newest version!
package org.bidib.jbidibc.net.serialovertcp;
public interface NetMessageHandler {
/**
* Receive messages from the configured port
*
* @param packet
* the received data
*/
void receive(DataPacket packet);
/**
* Send data to the port.
*
* @param port
* the port
* @param bytes
* the data
*/
void send(final NetBidibPort port, byte[] bytes);
/**
* Accept new client.
*
* @param remoteHost
* the host
*/
void acceptClient(String remoteHost);
/**
* Cleanup the connection of the client.
*
* @param remoteHost
*/
void cleanup(String remoteHost);
}