netstatus_info_get_num_default_gateways()

Get the number of default gateways from a network status structure.

Synopsis:

#include <bps/netstatus.h>
 
BPS_API int netstatus_info_get_num_default_gateways(netstatus_info_t *info)

Since:

BlackBerry 10.2.0

Arguments:

info

The netstatus_info_t structure to get the number of default gateways from.

Library:

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

Description:

The netstatus_info_get_num_default_gateways() function gets the number of default gateways from the specified netstatus_info_t structure. The index argument of netstatus_info_get_ip_gateway() must be less than this number.

Returns:

The number of default gateways.

Last modified: 2014-05-14



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

comments powered by Disqus