IpConvert Method

static eth32cfg_ip IpConvert(string ipaddr)
static eth32cfg_ip IpConvert(System.Net.IPAddress ipaddr)

Summary

This overloaded method converts either a string representation of an IP address, or .Net's IPAddress object into the eth32cfg_ip binary representation of an IP address. If a string representation doesn't contain a valid IP address, or if the IPAddress object is the wrong type of address, an EthError.InvalidIp error will be raised.

Parameters

  • ipaddr - The IP address to be converted.

Return Value

This method returns an eth32cfg_ip structure with the converted IP address.

See Also

IpConvertToNetIPAddress Method, IpConvertToString Method