public void RegionLoaded(Scene scene) { if (m_scene == null) { m_scene = scene; } if ((m_scene != null) && (m_createClientStack)) { m_log.Info("[LLClientStackModule] Starting up LLClientStack."); IPEndPoint endPoint = m_scene.RegionInfo.InternalEndPoint; uint port = (uint)endPoint.Port; m_clientStackManager = new ClientStackManager(m_clientStackDll); m_clientServer = m_clientStackManager.CreateServer(endPoint.Address, ref port, m_scene.RegionInfo.ProxyOffset, m_scene.RegionInfo.m_allow_alternate_ports, m_source, m_scene.AuthenticateHandler); m_clientServer.AddScene(m_scene); m_clientServer.Start(); } }
/// <summary> /// Start the heartbeat which triggers regular scene updates /// </summary> public void StartHeartbeat() { if (!ShouldRunHeartbeat) //Allow for the heartbeat to not be used { return; } m_clientServer.Start(); //Give it the heartbeat delegate with an infinite timeout monitor.StartTrackingThread(0, Update); //Then start the thread for it with an infinite loop time and no // sleep overall as the Update delete does it on it's own monitor.StartMonitor(0, 0); }
public void PostInitialize() { if ((m_scene != null) && (m_createClientStack)) { m_log.Info("[LLClientStackModule] Starting up LLClientStack."); IPEndPoint endPoint = m_scene.RegionInfo.InternalEndPoint; uint port = (uint)endPoint.Port; m_clientStackManager = new ClientStackManager(m_clientStackDll); m_clientServer = m_clientStackManager.CreateServer(endPoint.Address, ref port, m_scene.RegionInfo.ProxyOffset, m_scene.RegionInfo.m_allow_alternate_ports, m_source, m_scene.CommsManager.AssetCache); m_clientServer.AddScene(m_scene); m_clientServer.Start(); } }
public void PostInitialise() { if ((m_scene != null) && (m_createClientStack)) { m_log.Info("[LLClientStackModule] Starting up LLClientStack."); IPEndPoint endPoint = m_scene.RegionInfo.InternalEndPoint; uint port = (uint)endPoint.Port; m_clientStackManager = new ClientStackManager(m_clientStackDll); m_clientServer = m_clientStackManager.CreateServer(endPoint.Address, ref port, m_scene.RegionInfo.ProxyOffset, m_scene.RegionInfo.m_allow_alternate_ports, m_source, m_scene.CommsManager.AssetCache); m_clientServer.AddScene(m_scene); m_clientServer.Start(); } }