%SS_INET_ADDR

Convert IPv4 address from text to numeric

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
status = %SS_INET_ADDR(charstring, in_addr)

Return value

status

If successful, returns SS_SUCCESS (0). If charstring is invalid, returns SS_EBADSTRING (3). See the Socket Errors table for additional information about this error. (n)

Arguments

charstring

An IPv4 address. (a)

in_addr

Returned with the IP address in numeric form. (i4)

Discussion

%SS_INET_ADDR converts a string containing a valid IPv4 address into a numeric IP address.

Note

We recommend you use the newer %SS_INET_PTON instead of %SS_INET_ADDR.