cnet v3.1.4

home
FAQ

cmdline options
topology files
attributes

datatypes
data structures
core API
support API

download/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 was written and is maintained by Chris McDonald (chris@csse.uwa.edu.au).

cnet development has been supported by an ACM-SIGCSE Special Project Grant, and an Australian Apple University Consortium Scholarship.