Example #1
0
        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);
        }
Example #2
0
    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();
    }