Configuration Specification
4-26
-
uint ReportCode;
All the services available via the configuration can also be launched direct-
ly via a NETTOOLS API. The NETTOOLS service API has a standard ser-
vice reporting callback function that is mirrored by the configuration sys-
tem via the Net Control service provider callback. This variable holds the
last report code reported by the NETTOOLS service invoked by this con-
figuration entry.
-
uint IfIdx;
This is the physical device index (1 to n) on which the service is to be exe-
cuted. For example, when launching a DHCP server service, the physical
interface is that connected to the home network. For more generic ser-
vices (like Telnet), the service can be launched by a pre-defined IP ad-
dress (or INADDR_ANY as a wildcard). When launching by IP address
only, this field is left NULL. If the field is valid, the CIS_FLG_IFIDXVALID
flag should be set in Mode.
-
IPN IPAddr;
This is the IP address (in network format) on which to initiate the service.
This IP address can specify the wildcard INADDR_ANY, in which case the
service will accept connections to any valid IP address on any device. Note
that some services (like DHCP sever) do not support being launched by IP
address and require a device index (supplied in IfIdx) on which to execute.
void(*pCbSrv)(uint, uint, uint, HANDLE);
The pCbSrv parameter contains a callback function that is called when the
status of the service changes. It can be set to NULL if a callback is not re-
quired. The specification of the callback function is as follows:
void StatusCallback( uint Item, uint Status, uint
Code, HANDLE hCfgEntry )
Item – Item value of entry changed
Status – New status
Code – Report code (if any)
hCfgEntry – Non-Referenced HANDLE to entry with status change
Note that the Status parameter is the same as the Status field described in
this structure. The Code parameter is that returned by the NETTOOLS
service callback, which is a lower-level status callback function used by
Net Control.