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


Binding sockets in an iterative server program

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

At this point in the process, an entry in the table of communications has been reserved for your application. However, the socket has no port or IP address associated with it until you use the bind() function. The bind() function requires three parameters:
  • The socket just given to the server.
  • The number of the port to which the server is to provide service.
  • The IP address of the network connection from which the server is to accept connection. If this address is 0, the server accepts connection requests from any address.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014