コード例 #1
0
ファイル: SocketServer.cs プロジェクト: x154152/SmartTokens
        public SocketServer()
        {
            myFtdiDevice = new FTDIDevice();
            connectDongle();

            dongleMessageMutex = new Mutex();

            listeningThread = new Thread(new ThreadStart(lookForClients));
            streamingThread = new Thread(new ThreadStart(StreamData));
            streamingThread.IsBackground = true;
            listeningThread.IsBackground = true;

            streamingThread.Start();
            listeningThread.Start();
        }
コード例 #2
0
        public SocketServer()
        {
            myFtdiDevice = new FTDIDevice();
            connectDongle();

            dongleMessageMutex = new Mutex();

            listeningThread = new Thread(new ThreadStart(lookForClients));
            streamingThread = new Thread(new ThreadStart(StreamData));
            streamingThread.IsBackground = true;
            listeningThread.IsBackground = true;

            streamingThread.Start();
            listeningThread.Start();
        }