Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
BIND call z/OS Communications Server: IP CICS Sockets Guide SC27-3649-00 |
|||||||||||||||||||
In a typical server program, the BIND call follows a SOCKET call and completes the process of creating a new socket. The BIND call can either specify the required port or let the system choose the port. A listener program should always bind to the same well-known port, so that clients know what socket address to use when attempting to connect. Even if an application specifies a value of 0 for the IP address on the BIND, the system administrator can override that value by specifying the BIND parameter on the PORT reservation statement in the TCP/IP profile. This has a similar effect to the application specifying an explicit IP address on the BIND macro. For more information, see z/OS Communications Server: IP Configuration Reference. In the AF_INET or AF_INET6 domain, the BIND call for a stream socket can specify the networks from which it is willing to accept connection requests. The application can fully specify the network interface by setting the IP-ADDRESS field to the Internet address of a network interface. Alternatively, the application can use a wildcard to specify that it wants to receive connection requests from any network interface. This is done by setting the IP-ADDRESS field to the value of INADDR-ANY or IN6ADDR-ANY. The following requirements apply to this call:
Figure 1 shows an example of BIND call instructions. Figure 1. BIND call instruction example
For equivalent PL/I and assembler language declarations, see Converting parameter descriptions. |
Copyright IBM Corporation 1990, 2014
|