|
Monero
|
#include <stdio.h>#include <sys/types.h>#include <netinet/in.h>#include "getconnstatus.h"#include "getifaddr.h"
Macros | |
| #define | STATUS_UNCONFIGURED (0) |
| #define | STATUS_CONNECTING (1) |
| #define | STATUS_CONNECTED (2) |
| #define | STATUS_PENDINGDISCONNECT (3) |
| #define | STATUS_DISCONNECTING (4) |
| #define | STATUS_DISCONNECTED (5) |
Functions | |
| int | get_wan_connection_status (const char *ifname) |
| const char * | get_wan_connection_status_str (const char *ifname) |
| #define STATUS_CONNECTED (2) |
| #define STATUS_CONNECTING (1) |
| #define STATUS_DISCONNECTED (5) |
| #define STATUS_DISCONNECTING (4) |
| #define STATUS_PENDINGDISCONNECT (3) |
| #define STATUS_UNCONFIGURED (0) |
| int get_wan_connection_status | ( | const char * | ifname | ) |
get the connection status return values : 0 - Unconfigured 1 - Connecting 2 - Connected 3 - PendingDisconnect 4 - Disconnecting 5 - Disconnected
return the same value as get_wan_connection_status() as a C string