cnet v4.0.4  

home topology files command‑line options the core API FAQ download and install

cnet's Application Programming Interface

NAME
CNET_set_wlancolour - set the colour of the WLAN signal on the graphical interface

SYNOPSIS
#include <cnet.h> int CNET_set_wlancolour(int link, CnetColour colour);

DESCRIPTION
When using cnet's graphical interface, CNET_set_wlancolour sets the colour of the wireless signal drawn on the simulation map.

RETURN VALUE
The value 0 is returned on success. On failure, the value -1 is returned, and the global variable cnet_errno is set to one of the following values to describe the error:

ER_BADARG
The value of colour is not a valid value of the CnetColour enumerated type.
ER_BADLINK
The value of link is not a valid link number.
ER_NOTSUPPORTED
The indicated link is not of type LT_WLAN.
SEE ALSO
CNET_get_wlaninfo.

cnet v4.0.4 - [email protected]