Example #1
0
        public Server(MultipleThread thread)
        {

            Port = 9877;
            this.thread = thread;
            dic = new Dictionary<int, Socket>();
        }
Example #2
0
        static void Main(string[] args)
        {

            IProtocol protocol = new Protocol();
            MultipleThread thread = new MultipleThread(protocol);
            Server server = new Server(thread);
            server.Start();
        }