Package org.openmuc.jship.api
Interface ShipConnectionInterface
-
public interface ShipConnectionInterface
users can interact with a specific client or server through this interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
closes the connectionjava.lang.String
getRemoteAddress()
returns the IP address of the communication partnerjava.lang.String
getRemoteSki()
returns the current SKI of the communication partnervoid
sendMsg(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
-
-