cnet's Application Programming Interface

NAME
CNET_carrier_sense - determines if a LT_LAN or LT_WLAN link is busy.

SYNOPSIS
#include <cnet.h>

int CNET_carrier_sense(int link);

DESCRIPTION
CNET_carrier_sense indicates if the indicated LT_LAN or LT_WLAN link is currently transmitting or receiving a signal.

RETURN VALUE
The value 1 is returned if the link is currently transmitting or receiving a signal. The value 0 is returned if there is no error, and the link is neither transmitting nor receiving a signal. 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_BADLINK
The value of link is not a valid link number.
ER_LINKDOWN
The indicated link is down.
ER_NOTREADY
The current node is rebooting.
ER_NOTSUPPORTED
The indicated link is not of type LT_LAN or LT_WLAN.
SEE ALSO
CNET_write_physical.

 cnet v3.3.4, written by Chris.McDonald@uwa.edu.au
 Last modified: Tue Mar 1 7:43AM 2016