Go to the source code of this file.
Functions |
char | f_lqm (char val) |
void | fill_lqm (char val) |
void | free_lqm () |
void | init_lqm (int m_size) |
void | lqm_backup () |
void | lqm_calculate_distances (void) |
void | lqm_compute_prob (char **lqm) |
void | lqm_copy_to (char **dest, char **src) |
int | lqm_get_distance (char i, char j) |
int | lqm_get_num_hops (int i, int j) |
char ** | lqm_get_ptr (void) |
char | lqm_get_val (int i, int j) |
int | lqm_is_leaf (char id) |
int | lqm_prob_get_path (int src, int dest, char *path) |
int | lqm_prob_get_val (int src, int dest) |
char ** | lqm_prune (char **mlqm) |
void | lqm_restore () |
void | lqm_set_f (char(*f)(char)) |
void | lqm_set_val (int i, int j, char val) |
void | print_lqm3 (char *txt, char **lqm) |
int | wmpIsNetworkConnected (void) |
int | wmpIsNetworkConnectedBlocking (int timeout_ms) |
Variables |
static int ** | A0 |
static int ** | A1 |
static int | copied = 0 |
static char(* | fp )(char) |
static int | informed = 0 |
static THREAD_SEM_T | isconn |
static char ** | lqm |
static char ** | lqm_copy |
static char ** | lqm_dist |
char(*)(char) | lqm_get_f () |
static char ** | lqm_pruned |
static int | net_connected = 0 |
static int ** | Next |
static int | size |
Function Documentation
Definition at line 50 of file lqm.c.
Definition at line 65 of file lqm.c.
Allows knowing if the network is connected (i.e. all the nodes are up and working and connected among them)
- Returns:
- 1 if connected 0 if disconnected
Definition at line 179 of file lqm.c.
Allows knowing if the network is connected (i.e. all the nodes are up and working and connected among them and if not, blocks the caller thread until connected
- Parameters:
-
timeout_ms | specify the maximum wait for connection (if timeout_ms = 0 wait forever) |
- Returns:
- 1 if connected 0 if disconnected
Definition at line 183 of file lqm.c.
Variable Documentation
Definition at line 44 of file lqm.c.
Definition at line 44 of file lqm.c.
char(* fp)(char) [static] |
Definition at line 48 of file lqm.c.
Definition at line 45 of file lqm.c.
Definition at line 46 of file lqm.c.
Definition at line 43 of file lqm.c.
Definition at line 43 of file lqm.c.
Definition at line 43 of file lqm.c.
Definition at line 43 of file lqm.c.
Definition at line 45 of file lqm.c.
Definition at line 44 of file lqm.c.
Definition at line 45 of file lqm.c.