cc [flags.\|.\|.] -I /usr/cluster/include file -L /usr/cluster/lib -l dsdev #include <rgm/libdsdev.h> scha_err_t scds_fm_tcp_disconnect(scds_handle_t handle, int sock, time_t timeout);
The scds_fm_tcp_disconnect() function terminates a TCP connection with a process being monitored.
The following parameters are supported:
.na handle .ad The handle returned by scds_initialize(3HA).
.na sock .ad The socket number returned by a previous call to scds_fm_tcp_connect(3HA).
.na timeout .ad Timeout value in seconds.
The following exit values are returned:
.na 0 .ad The function succeeded.
.na nonzero .ad The function failed.
.na SCHA_ERR_NOERR .ad Indicates that the function succeeded.
.na SCHA_ERR_TIMEOUT .ad Indicates that the function timed out.
.na Other values .ad Indicate that the function failed. See scha_calls(3HA) for the meaning of failure codes.
.na /usr/cluster/include/rgm/libdsdev.h .ad Include file
.na /usr/cluster/lib/libdsdev.so .ad Library
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| Availability | SUNWscdev |
| Interface Stability | Deprecated |
scds_fm_net_disconnect(3HA), scds_fm_tcp_connect(3HA), scds_initialize(3HA), scha_calls(3HA), attributes(5)