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)

Arguments:

type

The connection type. You can use NFC_LLCP_CLIENT or NFC_LLCP_SERVER.

sap

The service access point.

service_name

The service name.

listenerHandle

The returned handle associated with this listener.

Library:

libnfc

Description:

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

Returns:

NFC_RESULT_SUCCESS, or one of the following: