164
K
DAK
KwikNet Low Level Services
kn_ifstate kn_ifstate
Purpose Query the State of a Network Interface
Used by
n Task o ISP o Timer Procedure o Restart Procedure n Exit Procedure
Setup Prototype is in file KN_API.H.
#include "KN_LIB.H"
int kn_ifstate(KN_NETDP netdp);
Description Netdp is a network descriptor pointer, the KwikNet handle used to identify
the network interface of interest.
Returns If successful, one of the following constant values will be returned.
KN_NIFS_DOWN The network was down and unavailable for use.
KN_NIFS_TRANSIT The network was in the process of going up or down.
KN_NIFS_UP The network was up with a valid IP address.
On failure, the value -1 is returned.
Example See the example provided with the description of procedure kn_ifnext().
See Also kn_ifinfo(), kn_netstats()
Comments to this Manuals