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


RawIpOpen

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

This procedure tells the TCP/IP address space that the client wants to send and receive packets of the specified protocol. Figure 1 shows an example.

Do not use protocols 6 and 17. They specify the TCP (6) and UDP (17) protocols. When you specify 6, 17, or a protocol that has been opened by another address space, you receive the LOCALportNOTavailable return code.

Figure 1. RawIpOpen example
   procedure RawIpOpen
            (
                 ProtocolNo: integer;
        var    ReturnCode: integer
            );
            external;
Parameter
Description
ProtocolNo
The number of the Internet protocol.
ReturnCode
Indicates success or failure of a call. Possible return values are:
  • OK
  • LOCALportNOTavailable
  • NObufferSPACE
  • NOTyetBEGUN
  • SOFTWAREerror
  • TCPipSHUTDOWN
  • UNAUTHORIZEDuser
For a description of Pascal return codes, see Table 1.
Note: You can open the ICMP protocol, but your program receives only those ICMP packets not interpreted by the TCP/IP address space.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014