public BluetoothClientTestSocketPair() { TestRfCommIf rfcommIf; TestRfcommPort port; BluetoothClient cli; Stream strm2; WidcommBluetoothClientCommsTest.Create_ConnectedBluetoothClient( out rfcommIf, out port, out cli, out strm2); m_cliA = new BluetoothClientWrapper(cli); m_port = port; m_rfcommIf = rfcommIf; }
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; }
//---- internal void Create_ConnectedBluetoothClient(out TestRfCommIf rfcommIf, out TestRfcommPort port, out BluetoothClient cli, out Stream strm2) { WidcommBluetoothClientCommsTest.Create_ConnectedBluetoothClient( out rfcommIf, out port, out cli, out strm2); }