%SS_INET_PTON

Convert IPv4 address from text to numeric

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

Return value

status

If successful, returns SS_SUCCESS (0). If unsuccessful, returns SS_ENULL (2). See the Socket Errors table for additional information about this error. (n)

Arguments

charstring

An IPv4 address. (a)

in_addr

Returned with IP address in numeric form. The family is set to AF_INET. (i4)

Discussion

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

If SS_ENULL is returned, the system error code can be returned by immediately calling %SYSERR.