예제 #1
0
 static public void DestroyServerSocket(BluetoothServerSocket socket)
 {
     if (IsBluetoothEnabled && Globals.IsInitialize)
     {
         BluetoothAdapterImpl.Instance.DestroyServerSocket(socket);
     }
 }
예제 #2
0
        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);
            }
        }