Beispiel #1
0
 static public void DestroyServerSocket(BluetoothServerSocket socket)
 {
     if (IsBluetoothEnabled && Globals.IsInitialize)
     {
         BluetoothAdapterImpl.Instance.DestroyServerSocket(socket);
     }
 }
        internal void DestroyServerSocket(BluetoothServerSocket socket)
        {
            int ret = Interop.Bluetooth.DestroyServerSocket(socket.socketFd);

            if (ret != (int)BluetoothError.None)
            {
                Log.Error(Globals.LogTag, "Failed to destroy socket, Error - " + (BluetoothError)ret);
                BluetoothErrorFactory.ThrowBluetoothException(ret);
            }
        }