1SAM_HC_SEND(3)    Corosync Cluster Engine Programmer's Manual   SAM_HC_SEND(3)
2
3
4

NAME

6       sam_hc_send - Send health check confirmation
7
8

SYNOPSIS

10       #include <corosync/sam.h>
11
12
13       cs_error_t sam_hc_send (void);
14
15

DESCRIPTION

17       The  sam_hc_send function is used to send healthcheck confirmation from
18       the application.  This function should be called regularly when configā€
19       ured  for  application driven healthchecking, otherwise recovery action
20       will be taken.
21
22       When using event driven healthchecking, this  function  should  not  be
23       used.
24
25

RETURN VALUE

27       This  call  return  CS_OK  value  if successful, otherwise and error is
28       returned.
29
30

ERRORS

32       CS_ERR_BAD_HANDLE
33              health checking is not in running state  (sam_start(3)  has  not
34              been  executed) or function is called after stop/finalization of
35              SAM.
36
37

SEE ALSO

39       sam_start(3), sam_stop(3), sam_hc_callback_register(3)
40
41       CS_ERR_TRY_AGAIN Resource temporarily unavailable
42
43       CS_ERR_INVALID_PARAM Invalid argument
44
45       CS_ERR_ACCESS Permission denied
46
47       CS_ERR_LIBRARY The connection failed
48
49       CS_ERR_INTERRUPT System call interrupted by a signal
50
51       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
52
53       CS_ERR_MESSAGE_ERROR Incorrect auth message received
54
55       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
56
57
58
59corosync Man Page                 12/01/2009                    SAM_HC_SEND(3)
Impressum