Esempio n. 1
0
 public void InitConfig(ServerOption option)
 {
     m_Config = new ServerConfig
     {
         Port = option.Port,
         Ip   = "Any",
         MaxConnectionNumber = option.MaxConnectionNumber,
         Mode = SocketMode.Tcp,
         Name = option.Name
     };
 }
Esempio n. 2
0
        static ServerOption ParseCommandLine(string[] args)
        {
            var option = new ServerOption
            {
                Port = 32452,
                MaxConnectionNumber = 32,
                Name = "EchoServer"
            };

            return(option);
        }