Exemplo n.º 1
0
        void SetupRfcommIf()
        {
            IRfCommIf rfCommIf = m_factory.GetWidcommRfCommIf();

            m_RfCommIf = new WidcommRfcommInterface(rfCommIf);
            rfCommIf.Create();
            GC.ReRegisterForFinalize(this);
        }
Exemplo n.º 2
0
 internal WidcommL2CapStream(IRfcommPort port, IRfCommIf rfCommIf, WidcommBluetoothFactoryBase factory)
     : base(port, rfCommIf, factory)
 {
     if (port == null)
     {
         throw new ArgumentNullException("port");
     }
     _portRef = (L2CapPort)port; // CAST!!
 }
Exemplo n.º 3
0
        void SetupRfcommIf()
        {
            IRfCommIf rfCommIf = WidcommL2CapClient.GetWidcommL2CapIf(m_factory);

            _rfCommIf__tmp = rfCommIf;
            m_RfCommIf     = new WidcommRfcommInterface(rfCommIf);
            rfCommIf.Create();
            GC.ReRegisterForFinalize(this);
        }
Exemplo n.º 4
0
        protected WidcommRfcommStreamBase(IRfcommPort port, IRfCommIf rfCommIf, WidcommBluetoothFactoryBase factory)
        {
            m_factory = factory;
            //----
            _singleThreader = factory.GetSingleThreader();
            bool created = false;

            try {
                SetPort(port);
                if (rfCommIf != null)
                {
                    m_RfCommIf = new WidcommRfcommInterface(rfCommIf);
                    rfCommIf.Create();
                }
                created = true;
            } finally {
                if (!created)
                {
                    GC.SuppressFinalize(this);
                }
            }
        }
Exemplo n.º 5
0
 //----
 internal L2CapPort(IRfCommIf intf)
 {
     _intf = intf;
 }
Exemplo n.º 6
0
 private static IRfcommPort GetWidcommL2CapPort(IRfCommIf intf)
 {
     return(new L2CapPort(intf));
 }
Exemplo n.º 7
0
 internal static WidcommL2CapStream GetWidcommL2CapStreamWithThisIf(
     WidcommBluetoothFactoryBase fcty, IRfCommIf intf)
 {
     return(new WidcommL2CapStream(GetWidcommL2CapPort(intf), null, fcty));
 }
Exemplo n.º 8
0
 internal WidcommRfcommInterface(IRfCommIf rfCommIf)
 {
     m_RfCommIf = rfCommIf;
 }
Exemplo n.º 9
0
 internal WidcommRfcommStream(IRfcommPort port, IRfCommIf rfCommIf, WidcommBluetoothFactoryBase factory)
     : base(port, rfCommIf, factory)
 {
 }
Exemplo n.º 10
0
 public WidcommStRfCommIf(WidcommBluetoothFactoryBase factory, IRfCommIf child)
 {
     _st    = factory.GetSingleThreader();
     _child = child;
 }
Exemplo n.º 11
0
 internal TestRfcommStream_WriteEventAfterEachBeginWrite(TestRfcommPort port, IRfCommIf iface, WidcommBluetoothFactoryBase fcty)
     : base(port, iface, fcty)
 {
     m_port = port;
 }