private static AcceptThread CreateAcceptThread() { var thread = new AcceptThread(); thread.Run(); return(thread); }
private AcceptThread CreateAcceptThread() { if (_refCount == Disposed) { ThrowHelper.ThrowNewObjectDisposedException(ThrowHelper.ExceptionArgument.IoUringTransport); } var thread = new AcceptThread(_options, TransportThreads); thread.Run(); return(thread); }
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; }