Example #1
0
 /// <summary>
 /// Add a client for testing
 /// </summary>
 /// <param name="scene"></param>
 /// <param name="testLLUDPServer"></param>
 /// <param name="testPacketServer"></param>
 /// <param name="acm">Agent circuit manager used in setting up the stack</param>        
 protected void SetupStack(
     IScene scene, out TestLLUDPServer testLLUDPServer, out TestLLPacketServer testPacketServer, 
     out AgentCircuitManager acm)
 {
     IConfigSource configSource = new IniConfigSource();
     ClientStackUserSettings userSettings = new ClientStackUserSettings();
     testLLUDPServer = new TestLLUDPServer();             
     acm = new AgentCircuitManager();
                             
     uint port = 666;            
     testLLUDPServer.Initialise(null, ref port, 0, false, configSource, acm);
     testPacketServer = new TestLLPacketServer(testLLUDPServer, userSettings);
     testLLUDPServer.LocalScene = scene;            
 }
        /// <summary>
        /// Add a client for testing
        /// </summary>
        /// <param name="scene"></param>
        /// <param name="testLLUDPServer"></param>
        /// <param name="testPacketServer"></param>
        /// <param name="acm">Agent circuit manager used in setting up the stack</param>
        protected void SetupStack(
            IScene scene, out TestLLUDPServer testLLUDPServer, out TestLLPacketServer testPacketServer,
            out AgentCircuitManager acm)
        {
            IConfigSource           configSource = new IniConfigSource();
            ClientStackUserSettings userSettings = new ClientStackUserSettings();

            testLLUDPServer = new TestLLUDPServer();
            acm             = new AgentCircuitManager();

            uint port = 666;

            testLLUDPServer.Initialise(null, ref port, 0, false, configSource, acm);
            testPacketServer           = new TestLLPacketServer(testLLUDPServer, userSettings);
            testLLUDPServer.LocalScene = scene;
        }