/// <summary> /// Used when a device is discovered during Inquiry. /// </summary> /// - /// <remarks> /// <para>When the result of Inquiry and get-stack-stored-devices are merged, /// the remembered/authenticated flags may get set then (with <see cref="M:SetAuthenticated"/>). /// </para> /// </remarks> internal static WidcommBluetoothDeviceInfo CreateFromHandleDeviceResponded(byte[] bdAddr, byte[] deviceName, byte[] devClass, bool connected, WidcommBluetoothFactoryBase factory) { REM_DEV_INFO rdi = new REM_DEV_INFO(); rdi.bda = bdAddr; rdi.bd_name = deviceName; rdi.b_connected = connected; rdi.dev_class = devClass; WidcommBluetoothDeviceInfo bdi = new WidcommBluetoothDeviceInfo(rdi, factory); //bdi.m_inquiryTime = DateTime.UtcNow; return(bdi); }
internal WidcommRfcommStream(IRfcommPort port, IRfCommIf rfCommIf, WidcommBluetoothFactoryBase factory) : base(port, rfCommIf, factory) { }
internal static WidcommBluetoothDeviceInfo CreateFromGivenAddress(BluetoothAddress address, WidcommBluetoothFactoryBase factory) { REM_DEV_INFO rdi = new REM_DEV_INFO(); rdi.bda = WidcommUtils.FromBluetoothAddress(address); WidcommBluetoothDeviceInfo bdi = factory.GetWidcommBtInterface() .ReadDeviceFromRegistryAndCheckAndSetIfPaired(address, factory); if (bdi == null) { bdi = CreateFromGivenAddressNoLookup(address, factory); } return(bdi); }
/// <summary> /// Used when loading a stack stored/remembered/maybe-paired device. /// </summary> internal static WidcommBluetoothDeviceInfo CreateFromStoredRemoteDeviceInfo(REM_DEV_INFO rdi, WidcommBluetoothFactoryBase factory) { WidcommBluetoothDeviceInfo bdi = new WidcommBluetoothDeviceInfo(rdi, factory); bdi.m_remembered = true; return(bdi); }
//-------- internal static WidcommBluetoothDeviceInfo CreateFromGivenAddressNoLookup(BluetoothAddress address, WidcommBluetoothFactoryBase factory) { REM_DEV_INFO rdi = new REM_DEV_INFO(); rdi.bda = WidcommUtils.FromBluetoothAddress(address); WidcommBluetoothDeviceInfo bdi = new WidcommBluetoothDeviceInfo(rdi, factory); return(bdi); }
private WidcommBluetoothDeviceInfo(REM_DEV_INFO remDevInfo, WidcommBluetoothFactoryBase factory) { m_factory = factory; m_remDevInfo = remDevInfo; }
internal WidcommBluetoothSecurity(WidcommBluetoothFactoryBase factory) { Debug.Assert(factory != null); _factory = factory; }
public WidcommStRfCommIf(WidcommBluetoothFactoryBase factory, IRfCommIf child) { _st = factory.GetSingleThreader(); _child = child; }
internal WidcommBluetoothListener(WidcommBluetoothFactoryBase factory) : base(factory) { m_factory = factory; GC.SuppressFinalize(this); // Finalization only needed for IRfcommIf. }