Class Client


  • public class Client
    extends Object
    Client gửi nhận strings đến TCP Server
    Since:
    22/08/2019
    Author:
    tranphuquy19@gmail.com
    • Constructor Detail

      • Client

        public Client​(String serverIP,
                      int serverPort)
               throws IOException
        Thiết lập kết nối đến server theo IP và port của server
        Parameters:
        serverIP - IP của Server
        serverPort - Port của Server
        Throws:
        IOException
    • Method Detail

      • listenServer

        private void listenServer()
      • main

        public static void main​(String[] args)
                         throws IOException
        Parameters:
        args - Start client with: args[] ={hostID, hostPort} or by default hostID="0.0.0.0" & hostPort=16057
        Throws:
        IOException