The PTON macro converts an IP address in its standard text presentation form to its numeric binary form. On successful completion, PTON returns the converted IP address in the buffer provided.
Authorization: | Supervisor state or problem state, any PSW key. |
Dispatchable unit mode: | Task. |
Cross memory mode: | PASN = HASN. |
Amode: | 31-bit or 24-bit. Note: See "Addressability
mode (Amode) considerations" under CALL instruction API environmental restrictions and programming requirements.
|
ASC mode: | Primary address space control (ASC) mode. |
Interrupt status: | Enabled for interrupts. |
Locks: | Unlocked. |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
>>-EZASMI--TYPE=PTON--,AF--=--+-'INET'---+----------------------> +-'INET6'--+ +-address--+ +-*indaddr-+ '-(reg)----' >--,SRCADDR--=--+-address--+--,SRCLEN--=--+-address--+----------> +-*indaddr-+ +-*indaddr-+ '-(reg)----' '-(reg)----' >--,DSTADDR--=--+-address--+--,ERRNO--=--+-address--+-----------> +-*indaddr-+ +-*indaddr-+ '-(reg)----' '-(reg)----' >--,RETCODE--=--+-address--+--+-------------------------+------>< +-*indaddr-+ '-,ERROR--=--+-address--+-' '-(reg)----' +-*indaddr-+ '-(reg)----'
AF can also indicate a fullword binary number specifying the address family.
See Socket call error return codes for information about ERRNO return codes.