Пример #1
0
        public void Setup()
        {
            m_Config = new ServerConfig
            {
                Port = 555,
                Ip = "Any",
                MaxConnectionNumber = 10,
                Mode = SocketMode.Tcp,
                Name = "GPSServer"
            };

            m_Server = new MyAppServer();
            m_Server.Setup(new RootConfig(), m_Config, logFactory: new ConsoleLogFactory());
        }
Пример #2
0
        public void Setup()
        {
            m_Config = new ServerConfig
            {
                Port = 555,
                Ip   = "Any",
                MaxConnectionNumber = 10,
                Mode = SocketMode.Tcp,
                Name = "GPSServer"
            };

            m_Server = new MyAppServer();
            m_Server.Setup(new RootConfig(), m_Config, logFactory: new ConsoleLogFactory());
        }