int CCEthernet::set_information ( ceth_device *  device,
ceth_set_types  command,
  ... 
)

Sets the communications parameters for a particular module.

Deprecated:
Version 2.x
Parameters
[in]deviceDevice to modify the parameters of.
[in]commandWhich parameters to modify (i.e. SetIPAddress, SetDHCP, SetName).
[in]...This parameter list is based off of the command parameter above.
Return values
-100XXSocket error. Refer to the Winsock documentation for error code.

The variable argument list is defined by the command parameter passed in. The commands can be logically OR'd together to make the sequence easier. First each command individually:

SetIPAddress - Parameters: New IP Address, New Netmask, New Gateway SetDHCP - Parameters: None SetName - Parameters: New Name

If the IP configuration (DHCP or Static) is logically OR'd with the SetName option, the parameters for the IP address must come first, and the last parameter will be the name.

References SME_ModuleByIP(), SME_SetDHCPConfig(), SME_SetName(), and SME_SetNetworkConfig().

 
 
Generated on Mon Nov 26 2018.