nfc_llcp_register_connection_listener()

Create a client or server LLCP connection listener.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_llcp_register_connection_listener(nfc_llcp_connection_type_t type, unsigned int sap, const char *service_name, nfc_llcp_connection_listener_t *listenerHandle)

Since:

BlackBerry 10.0.0

Arguments:

type

The connection type. You can use NFC_LLCP_CLIENT or NFC_LLCP_SERVER.

sap
The service access point. We recommend setting this value to 0 to let the platform assign the service access point for the service specified by the service name.
  • In feature set 1, valid values are 0, 2, 3, and all values from 5 to 63.
  • In feature set 2, valid values are 0 and all values from 17 to 32.
service_name

The service name.

listenerHandle

The returned handle associated with this listener.

Library:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This function creates a listener for a client or server LLCP connection.

Returns:

NFC_RESULT_SUCCESS, or one of the following:

Last modified: 2015-04-16



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus