Code CALL Instructions
These topics contain the description, syntax, parameters, and other related information for each call instruction included in the debugging tools sockets interface.
- ACCEPT
A server issues the ACCEPT call to accept a connection request from a client. The call points to a socket that was previously created with a SOCKET call and marked by a LISTEN call. - BIND
In a typical server program, the BIND call follows a SOCKET call and completes the process of creating a new socket. - CLOSE
The CLOSE call shuts down a socket and frees all resources allocated to it. If the socket refers to an open TCP connection, the connection is closed. - CONNECT
The CONNECT call is issued by a client to establish connection with a server. - FREEADDRINFO
The FREEADDRINFO call frees the storage that was acquired by the z/OS Communications Server when the GETADDRINFO call was issued. - GETADDRINFO
The GETADDRINFO call returns the 32-bit internet address for the current host from the GETADDRINFO command that is issued by z/OS Communications Server to resolve host or service name information. This command translates the name of a service location (host name) or a service name. - GETHOSTBYNAME
The GETHOSTBYNAME call returns the alias name and the internet address of a host whose domain name is specified in the call. A given host can have multiple alias names and multiple host internet addresses. - GETHOSTID
The GETHOSTID call returns the 32-bit internet address for the current host. - GETSOCKNAME
The GETSOCKNAME call returns the address currently bound to a specified socket. If the socket is not currently bound to an address, the call returns with the FAMILY field set, and the rest of the structure set to 0. - INITAPI
The INITAPI call connects a program to the debugging tools sockets interface. All sockets programs must issue the INITAPI call before they issue other sockets calls. - LISTEN
The LISTEN call completes the bind, if BIND has not already been called for the socket, and creates a connection-request queue of a specified length for incoming connection requests. - READ
The READ call reads the data on a socket. - SHUTDOWN
One way to terminate a network connection is to issue the CLOSE call which attempts to complete all outstanding data transmission requests before breaking the connection. The SHUTDOWN call can be used to close one-way traffic while completing data transfer in the other direction. The HOW parameter determines the direction of traffic to shutdown. - SOCKET
The SOCKET call creates an endpoint for communication and returns a socket descriptor representing the endpoint. - WRITE
The WRITE call writes data on a connected socket.
dfhtn0o.html |
Last updated: Monday, 5 June 2017