Exemplo n.º 1
0
        public static void ServerPcOpen(int port)
        {
            if (ServerPc == null)
            {
                ServerPc = new PcTcpServer(port);

                Thread serverThread = new Thread(new ParameterizedThreadStart(ServerPcStart));
                serverThread.IsBackground = true;
                serverThread.Start(ServerPc);
            }
        }
Exemplo n.º 2
0
        private static void ServerPcStart(object obj)
        {
            PcTcpServer server = (PcTcpServer)obj;

            server.DoAll();
        }