public BTTransferSendThread(BluetoothSocket socket, XamarinBluetooth a) { mmSocket = socket; _adapter = a; // Get the BluetoothSocket input and output streams mmOutStream = socket.OutputStream; }
public BTTransferRecieveThread(BluetoothSocket socket, XamarinBluetooth a) { mmSocket = socket; _adapter = a; Stream tmpIn = null; // Get the BluetoothSocket input and output streams mmInStream = socket.InputStream; }
public BTAcceptThread(XamarinBluetooth a) { _adapter = a; BluetoothServerSocket tmp = null; // Create a new listening server socket tmp = _adapter.Adapter.ListenUsingRfcommWithServiceRecord(XamarinBluetooth.NAME, XamarinBluetooth.UUID); mmServerSocket = tmp; }
public BTConnectThread(BluetoothDevice device, XamarinBluetooth a) { mmDevice = device; _adapter = a; BluetoothSocket tmp = null; // Get a BluetoothSocket for a connection with the // given BluetoothDevice tmp = device.CreateRfcommSocketToServiceRecord(XamarinBluetooth.UUID); mmSocket = tmp; }
public BTScanReciever(XamarinBluetooth a) { _adapter = a; }