In COBOL, the IOV structure must be defined separately in the Linkage section, as shown in the example.
Literal Value | Binary Value | Description |
---|---|---|
NO-FLAG | X'00000000' | Read data. |
MSG-OOB | X'00000001' | Receive out-of-band data (stream sockets only). Even if the OOB flag is not set, out-of-band data can be read if the SO-OOBINLINE option is set for the socket. |
MSG-PEEK | X'00000002' | Peek at the data, but do not destroy data. If the peek flag is set, the next receive operation reads the same data. |
MSG-WAITALL | X'00000040' | Requests that the function block until the requested amount of data can be returned (stream sockets only). The function might return a smaller amount of data if the connection is closed, if an error is pending, or if the SO_RCVTIMEO field is set and the timer has expired for the socket. |