Exemple #1
0
 internal SocketBluetoothClient(BluetoothFactory fcty, Socket acceptedSocket)
 {
     Debug.Assert(fcty != null, "ArgNull");
     _fcty          = fcty;
     this.Client    = acceptedSocket;
     active         = true;
     m_optionHelper = CreateSocketOptionHelper(this.Client);
 }
Exemple #2
0
 internal SocketBluetoothClient(BluetoothFactory fcty)
 {
     Debug.Assert(fcty != null, "ArgNull");
     _fcty = fcty;
     try {
         this.Client = CreateSocket();
     } catch (SocketException se) {
         throw new PlatformNotSupportedException("32feet.NET does not support the Bluetooth stack on this device.", se);
     }
     m_optionHelper = CreateSocketOptionHelper(this.Client);
 }