Interface ShipConnectionInterface


  • public interface ShipConnectionInterface
    users can interact with a specific client or server through this interface
    • 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