The following code issues a writev for a socket. SOCKDESC
was returned from a previous call to either BPX4SOC or BPX4ACP.
For the callable service, see
writev (BPX1WRV, BPX4WRV) — Write data from a set of buffers. For
the data structures, see
BPXYSOCK — Map SOCKADDR structure and constants and
BPXYIOV — Map the I/O vector structure. AMODE 31 callers use
BPX1WRV (writev) example.
MVC BUFFERA(16),=CL16'Here is the data'
LA R2,BUFFERA
STG R2,IOV_BASE
MVI IOV_LEN,16
*
CALL BPX4WRV, Write from a vector of buffers +
(SOCKDESC, Input: Socket Descriptor +
=A(1), Input: Single element in iov +
IOV, Input: Iov containing info +
PRIMARYALET, Input: Alet where iov resides +
PRIMARYALET, Input: Alet of buffers for data +
RETVAL, Return value: 0 or -1 +
RETCODE, Return code +
RSNCODE), Reason code +
MF=(E,PLIST) ----------------------------------