public void InitServer()
    {
        if (null != udpchat)
        {
            return;
        }

        //initAdressTextField = networkAdress;
        // udpchat.targetAddress = networkAdress;
        udpchat      = new UDPChat(true);
        udpchat.port = port;
        udpchat.Init();
        initializationComplete = true;
    }
    public void InitClient(string networkAdress)
    {
        if (null != udpchat)
        {
            return;
        }

        initAdressTextField   = networkAdress;
        udpchat               = new UDPChat(false);
        udpchat.targetAddress = networkAdress;
        udpchat.port          = port;
        udpchat.Init();
        //  udpchat.StartListening();
        initializationComplete = true;
    }