private MainClientSocket()
    {
        try
        {
            System.out.println(CommonData.getServerIp());
            System.out.println(CommonData.getServerPort());
            
            // ʼ
            socket = new Socket(CommonData.getServerIp().trim(), CommonData.getServerPort());
            serverThread = new ClientServerThread(socket);

        } catch(ConnectException e)
        {
            System.err.println("δҵ");
//            e.printStackTrace();
        } catch(UnknownHostException e)
        {
            e.printStackTrace();
        } catch(IOException e)
        {
            e.printStackTrace();
        }
    }