BPX1WRV (writev) example
The following code issues a writev for a socket. SOCKDESC
was returned from a previous call to either BPX1SOC or BPX1ACP.
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 64 callers
use BPX4WRV (writev) example.
MVC BUFFERA(16),=CL16'Here is the data'
LA R2,BUFFERA
ST R2,IOV_BASE
MVI IOV_LEN,16
*
CALL BPX1WRV, 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 +
VL,MF=(E,PLIST) ----------------------------------