Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
The DPIget_fd_for_handle() function z/OS Communications Server: IP Programmer's Guide and Reference SC27-3659-02 |
|
Format
Parameters
Return codesIf successful, a positive integer representing the file descriptor associated with the specified handle. If not successful, a negative integer is returned, which indicates the error that occurred. See Return codes from DPI transport-related functions for a list of possible error codes.
UsageThe DPIget_fd_for_handle function is used to obtain the file descriptor for the handle, which was obtained with a DPIconnect_to_agent_TCP() call or a DPIconnect_to_agent_UNIXstream() call. Using this function to retrieve the file descriptor associated with your DPI connections enables you to use either the select or selectex socket calls. Using selectex enables your program to wait for event control blocks (ECBs), in addition to a read condition. This is one example of how an MVS™ application can wait for notification of the receipt of a modify command (through an ECB post) or DPI packet at the same time. Examples
|
Copyright IBM Corporation 1990, 2014
|