![]() |
![]() |
cnet's core Application Programming InterfaceDescriptions of cnet's core functions are available from here. In each section functions are presented as C prototypes, often with an example of their use.Most core functions return the integer 0 on success and the integer -1 on failure. The most recent error status is reflected in the global variable cnet_errno. All values of cnet_errno will be instances of the enumerated type CnetError. Functions do not set the value of cnet_errno to ER_OK if their execution was successful. Note that these functions' names are prefixed with CNET_. Errors may be reported to stderr with CNET_perror() and their error message string accessed from cnet_errstr[(int)cnet_errno]. Application Layer functions
Physical Layer functions
WLAN and mobile node functions
Event handling functions Checksum and CRC functions Timer functions Tracing functions Node and per-link statistics Formatting 64-bit integers Pseudo-random number generation Miscellaneous functions
API restrictions
|
cnet v3.3.4, written by Chris.McDonald@uwa.edu.au
Last modified: Tue Mar 1 7:43AM 2016