CPS*(global variable)

Definitions

#include <nitroWiFi/cps.h>

CPSInAddr CPSMyIp;

CPSInAddr CPSNetMask;

CPSInAddr CPSGatewayIp;

CPSInAddr CPSDnsIp[2];

CPSMacAddress CPSMyMac;

CPSInAddr CPSDhcpServerIp;

int CPSNoIpReason;
  

Description

A list of global variables used by CPS.

CPSMyIp Own IPv4 address. 0 if not yet assigned.
CPSNetMask Own IPv4 net mask.
CPSGatewayIp Default gateway address.
CPSDnsIp[2] DNS server address. If there are no servers, both CPSDnsIp[0] and CPSDnsIp[1] are set to 0. If there is one server, the server is set to CPSDnsIp[0]. If there are two or more servers, the first server is set to CPSDnsIp[0]and the next server is set to CPSDnsIp[1].
CPSMyMac Own MAC address.
CPSDhcpServerIp DHCP server address.
CPSNoIpReason The reason code when CPSMyIp is 0.

See Also

CPSConfig

Revision History

10/24/2005 Initial version.