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