Package org.openmuc.jeebus.ship.api
Interface ShipConnectionInterface
-
public interface ShipConnectionInterfaceusers can interact with a specific client or server through this interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()closes the connectionjava.lang.StringgetRemoteAddress()java.lang.StringgetRemoteSki()voidrequestAccessMethods()requests access methods from client, only works as server, an exception is thrown otherwisevoidsendMsg(byte[] msg)sends a message to the communication partner
-
-
-
Method Detail
-
close
void close()
closes the connection
-
sendMsg
void sendMsg(byte[] msg)
sends a message to the communication partner- Parameters:
msg- the message to send
-
getRemoteSki
java.lang.String getRemoteSki()
- Returns:
- the current SKI of the communication partner
-
getRemoteAddress
java.lang.String getRemoteAddress()
- Returns:
- the IP address of the communication partner
-
requestAccessMethods
void requestAccessMethods()
requests access methods from client, only works as server, an exception is thrown otherwise
-
-