int __stdcall SME_GetNetworkConfig ( SME_HANDLE  handle,
char *  ipAddress,
char *  netmask,
char *  gateway 
)

Retrieve's the current Sealevel I/O module's IP address, netmask, and gateway as strings.

Parameters
[in]handleValid handle returned by SME_Initialize().
[out]ipAddress
[out]netmask
[out]gateway
Return values
0Successful completion.
-1Invalid SME_Initialize handle.
-2No module selected. Call SME_SearchForModules() first.

The currently selected Sealevel I/O module's IP address, netmask, and gateway will be placed in the parameter buffers in standard IP form (i.e. "x.x.x.x").

Note
If any parameter is NULL, that parameter is ignored. For instance, to retrieve only the current module's netmask, supply a valid string pointer for the second parameter, and NULL for the first and third parameters.
Warning
The supplied string buffers should each be allocated with at least 16 bytes of data before calling GetIPAddress().

Referenced by CCEthernet::find_devices().

 
 
Generated on Mon Nov 26 2018.