z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


RawIpReceive

z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
SC27-3660-00

Use the procedure shown in Figure 1 to specify a buffer to receive Raw IP datagrams of the specified protocol. You get the notification RAWIPpacketsDELIVERED when a packet is put in the buffer.

Figure 1. RawIpReceive example
   procedure RawIpReceive
            (
                 ProtocolNo: integer;
                 Buffer: Address31Type;
                 BufferLength: integer;
        var    ReturnCode: integer
            );
            external;
Parameter
Description
ProtocolNo
The number of the Internet protocol.
Buffer
The address of your buffer.
BufferLength
The length of your buffer. If you specify a length greater than 65535 bytes, only the first 65535 bytes are used.
ReturnCode
Indicates success or failure of a call. Possible return values are:
  • OK
  • NOsuchCONNECTION
  • NOTyetBEGUN
  • SOFTWAREerror
  • TCPipSHUTDOWN
  • UNAUTHORIZEDuser
  • INVALIDvirtualADDRESS

For a description of Pascal return codes, see Table 1.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014