コード例 #1
0
        private static AcceptThread CreateAcceptThread()
        {
            var thread = new AcceptThread();

            thread.Run();
            return(thread);
        }
コード例 #2
0
        private AcceptThread CreateAcceptThread()
        {
            if (_refCount == Disposed)
            {
                ThrowHelper.ThrowNewObjectDisposedException(ThrowHelper.ExceptionArgument.IoUringTransport);
            }

            var thread = new AcceptThread(_options, TransportThreads);

            thread.Run();
            return(thread);
        }
コード例 #3
0
        public void Start()
        {
            StopRunningConnectThread();

            // Start the thread to listen on a BluetoothServerSocket
            if (mSecureAcceptThread is null)
            {
                mSecureAcceptThread = new AcceptThread(true, this);
                mSecureAcceptThread.Run();
            }

            state = StateEnum.Connected;
        }