The following code issues a setpeer to set up the host
address. For the callable service, see
setpeer (BPX1SPR, BPX4SPR) — Preset the peer address associated with a socket.
For the data structure, see
BPXYSOCK — Map SOCKADDR structure and constants.
AMODE 31 callers use
BPX1SPR (setpeer) example.
CALL BPX4SPR, Select on a set of sockets +
(SOCKDESC, Input: Socket Descriptor +
SOCK#LEN+SOCK_SUN#LEN, Input: Length of socket address +
SOCKADDR, Input: Socket address +
SOCK#SO_SET, Input: Option - set the address +
RETVAL, Return value: 0 or -1 +
RETCODE, Return code +
RSNCODE), Reason code +
MF=(E,PLIST) ----------------------------------