示例#1
0
        /// <summary>The main method.</summary>
        public static void Main(string[] args)
        {
            ServerMain p = new ServerMain();

            p.Invoke();

            Console.WriteLine("\nPress RETURN to continue...");
            Console.ReadLine();
        }
示例#2
0
文件: Client.cs 项目: mikejzx/e2ee-im
        public BinaryWriter bw;      // For writing.

        public Client(ServerMain main, TcpClient client)
        {
            this.main   = main;
            this.client = client;

            Thread thread = new Thread(SetupConnection);

            thread.Start();
        }