Previous Topic: Using Multiple TCP/IP StacksNext Topic: Function Descriptions


Associating Time-outs to Sockets

In the standard POSIX socket interface, time-out conditions can only be detected through the use of the SELECT socket function. The socket interface provided by CA IDMS offers an extension that assigns a time-out value to each socket that created in the DC/UCF environment. The FCNTL socket function enables you to specify or retrieve a socket's time-out value.

When a socket is created, a default time-out value is assigned. The default time out value depends on the type of socket:

The following socket functions check the time-out value at runtime:

When a time-out condition occurs, the socket function returns a ETIMEDOUT errno code to the application.

More Information:

For more information about the FCNTL socket function, see FCNTL. For more information about the INACTIVE INTERVAL or EXTERNAL WAIT parameters of the TASK statement, see the CA IDMS System Generation Guide.