Class EchoClient


  • public final class EchoClient
    extends java.lang.Object
    Sends one message when a connection is open and echoes back any received data to the server. Simply put, the echo client initiates the ping-pong traffic between the echo client and server by sending the first message to the server.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String HOST  
      (package private) static int PORT  
      (package private) static int SIZE  
      (package private) static boolean SSL  
    • Constructor Summary

      Constructors 
      Constructor Description
      EchoClient()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SSL

        static final boolean SSL
      • HOST

        static final java.lang.String HOST
      • PORT

        static final int PORT
      • SIZE

        static final int SIZE
    • Constructor Detail

      • EchoClient

        public EchoClient()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception