Class SSLClient


  • public abstract class SSLClient
    extends Client
    • Constructor Detail

      • SSLClient

        public SSLClient​(java.lang.String host,
                         int port)
    • Method Detail

      • openSocket

        protected void openSocket()
                           throws java.net.UnknownHostException,
                                  java.io.IOException
        Description copied from class: Client
        Opens the Socket connection. Moved to a different function to make it easier to replace the Socket implementation.
        Overrides:
        openSocket in class Client
        Throws:
        java.net.UnknownHostException - if the specified Host is unknown
        java.io.IOException - when the process of opening the Socket fails.
      • processReceivedData

        protected abstract void processReceivedData​(byte[] data)
        Description copied from class: Client
        This function will be called once the client receives data from the server.
        Specified by:
        processReceivedData in class Client
        Parameters:
        data - sent by the server