sc_reconnect()

Re-establish a connection to a smart card.

Synopsis:

#include <smartcard/sc_smart_card.h>
 
sc_response_code_t sc_reconnect(sc_context_t *context,                 
                                sc_card_access_mode_t card_access_mode)

Since:

BlackBerry 10.2.0

Arguments:

context

The active smart card context. This value cannot be NULL.

card_access_mode

This parameter indicates whether the connection is opened for shared or exclusive access. If the requested mode is unavailable, an error is returned.

Library:

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

Description:

For example, you can use this function to change the mode of an existing connection (via the card_access_mode parameter).

To use this function, a connection must have previously been established; otherwise, an error is returned.

Returns:

SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.