Call this function to register a connection closed callback.
#include <bbpush/push_service.h>
int push_service_set_connection_close_callback(push_service_t *ps, push_connection_close_callback_t cb_func)
BlackBerry 10.2.0
A pointer to the push_service_t structure whose connection close callback you want to set.
The callback that will be called when the connection to the PNS Agent is closed.
When the connection to the PNS Agent is lost, the application or service needs to re-establish the connection with the PNS Agent by calling push_service_get_fd() periodically until push_service_get_fd() returns a valid file descriptor.
PUSH_SUCCESS upon success, PUSH_FAILURE with errno set otherwise.