public override void stopConnector() { if (server != null) { Debug.Log("Stoping the Receiver..."); server.Stop(); serverTransport.Close(); Debug.Log("Receiver stopped"); } if (receiverThread != null && receiverThread.IsAlive) { receiverThread.Abort(); } setConnected(false); }
public void Run() { var processor = new RendererService.RendererService.Processor(handler); transport = new TServerSocket(port); server = new TThreadPoolServer(processor, transport); serverThread = new Thread(() => { Debug.Log("Starting Renderer-Service..."); server.Serve(); transport.Close(); }) { IsBackground = true }; serverThread.Start(); }