示例#1
0
        public void Start()
        {
            StartServerParameter sp = new StartServerParameter();

            sp.protocolVersion = new Nettention.Proud.Guid(Common.Vars.g_ProtocolVersion);
            sp.tcpPorts        = new IntArray();
            sp.tcpPorts.Add(Common.Vars.g_serverPort);
            sp.serverAddrAtClient = "175.204.115.46";
            sp.localNicAddr       = "175.204.115.46";
            sp.SetExternalNetWorkerThreadPool(netWorkerThreadPool);
            sp.SetExternalUserWorkerThreadPool(userWorkerThreadPool);

            m_netServer.Start(sp);
        }
示例#2
0
        public void Start()
        {
            //fill server startup parameters
            StartServerParameter sp = new StartServerParameter();

            sp.protocolVersion = new Nettention.Proud.Guid(SngCommon.Vars.g_sngProtocolVersion);
            sp.tcpPorts        = new IntArray();
            sp.tcpPorts.Add(SngCommon.Vars.g_serverPort);   // must be same to the port number at client
            sp.serverAddrAtClient = "192.168.219.100";
            sp.localNicAddr       = "192.168.219.100";
            sp.SetExternalNetWorkerThreadPool(netWorkerThreadPool);
            sp.SetExternalUserWorkerThreadPool(userWorkerThreadPool);

            // let's start!
            m_netServer.Start(sp);
        }