|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Cluster Reference Manual Oracle Solaris Cluster 4.0|
- terminate a TCP connection to an application
cc [flags…] -I /usr/cluster/include file -L /usr/cluster/lib -l dsdev #include <rgm/libdsdev.h> scha_err_t scds_fm_net_disconnect(scds_handle_t handle, scds_socket_t *socklist, int count, time_t timeout);
The scds_fm_net_disconnect() function terminates one or more TCP connections to a process that is being monitored.
An attempt is made to close all valid socket connections in the socklist array within the specified timeout interval. On return, each member of socklist contains the value SCDS_FMSOCK_NA.
The following parameters are supported:
The handle that is returned by scds_initialize(3HA).
The socket list that is returned by scds_fm_net_connect(3HA). This argument is an input/output argument.
The number of members in the socklist array. Set this parameter to SCDS_MAX_IPADDR_TYPES.
The timeout value in seconds. Each socket gets the same time period to disconnect before it is timed out. As these time intervals proceed in parallel, this value is effectively the maximum time that the function takes to execute.
The scds_fm_net_disconnect() function returns the following values:
The function succeeded.
The function was called with invalid parameters.
The function failed. See scha_calls(3HA) for the meaning of failure codes.
See attributes(5) for descriptions of the following attributes: