/// <summary> /// Creates a new instance of <see cref="BluetoothClient"/>. /// </summary> public BluetoothClient() { try { this.Client = new Socket(AddressFamily32.Bluetooth, SocketType.Stream, BluetoothProtocolType.RFComm); } catch (SocketException se) { throw new PlatformNotSupportedException("32feet.NET does not support the Bluetooth stack on this device.", se); } m_optionHelper = new SocketOptionHelper(this.Client); }
internal BluetoothClient(Socket acceptedSocket) { this.Client = acceptedSocket; active = true; m_optionHelper = new SocketOptionHelper(this.Client); }