Beispiel #1
0
        public ISdpDiscoveryRecordsBuffer WidcommHack__GetServiceRecordsUnparsed(BluetoothAddress address, Guid serviceGuid)
        {
            WidcommBtInterface         btIf = ((WidcommBluetoothClient)m_impl).m_btIf___HACK;
            IAsyncResult               ar   = btIf.BeginServiceDiscovery(address, serviceGuid, null, null);
            ISdpDiscoveryRecordsBuffer recs = btIf.EndServiceDiscovery(ar);

            return(recs);
        }
 public void SetBtInterface(WidcommBtInterface btIf)
 {
     if (m_btIf != null)
     {
         throw new InvalidOperationException("Only can be one WidcommBtInterface.");
     }
     m_btIf = btIf;
 }
Beispiel #3
0
        private static void Create_BluetoothClient_WritePartialsAcceptHalfB(WidcommBtInterface btIface,
                                                                            out TestRfcommPort port, out BluetoothClient cli, out Stream strm2)
        {
            WidcommFactoryGivenInstances fcty = new WidcommFactoryGivenInstances();

            port = new TestRfcommPort_WritePartials_AcceptHalf();
            TestRfCommIf            rfCommIf = new TestRfCommIf();
            WidcommRfcommStreamBase strm     = new WidcommRfcommStream(port, rfCommIf, fcty);

            fcty.AddRfcommStream(strm);
            fcty.SetBtInterface(btIface);
            WidcommBluetoothClient wcli = new WidcommBluetoothClient(fcty);

            cli   = new BluetoothClient(wcli);
            strm2 = strm;
        }
 public void SetParent(WidcommBtInterface parent)
 {
     m_parent = parent;
 }