mco_HA_destroy_cancel_socket

This function closes an explicitly created cancel socket.

For an overview see page HA Applications

Prototype

    void mco_HA_destroy_cancel_socket(mco_db_h db,
                                      SOCKET *cancel_socket);

Arguments

db
Connection to the replica database.
cancel_socket
The cancel socket previously created by mco_HA_create_cancel_socket().

Description

This function closes a socket previously created by mco_HA_create_cancel_socket().

Return Codes

MCO_S_OK
Successful.
MCO_E_NW_INVALID_PARAMETER
Invalid cancel_socket value.
MCO_E_NW_CLOSE_SOCKET
Error in the close() system call.