Esempio n. 1
0
        public static NetworkLogin getInstance()
        {
            bool flag = NetworkLogin._instance == null;

            if (flag)
            {
                NetworkLogin._instance = new NetworkLogin();
            }
            return(NetworkLogin._instance);
        }
Esempio n. 2
0
 private void BeginAcceptTcpClient(IAsyncResult result)
 {
     NetworkLogin.accept(NetworkLogin._clientLoginListener.EndAcceptTcpClient(result));
     NetworkLogin._clientLoginListener.BeginAcceptTcpClient(new AsyncCallback(this.BeginAcceptTcpClient), null);
 }