pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions
remote_internal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


typedef struct crm_remote_s crm_remote_t


int crm_remote_send (crm_remote_t *remote, xmlNode *msg)
int crm_remote_ready (crm_remote_t *remote, int total_timeout)
gboolean crm_remote_recv (crm_remote_t *remote, int total_timeout, int *disconnected)
xmlNode * crm_remote_parse_buffer (crm_remote_t *remote)
int crm_remote_tcp_connect (const char *host, int port)
int crm_remote_tcp_connect_async (const char *host, int port, int timeout, int *timer_id, void *userdata, void(*callback)(void *userdata, int sock))
int crm_remote_accept (int ssock)
void crm_sockaddr2str (void *sa, char *s)
 Convert an IP address (IPv4 or IPv6) to a string for logging. More...

Typedef Documentation

typedef struct crm_remote_s crm_remote_t

Definition at line 15 of file remote_internal.h.

Function Documentation

int crm_remote_accept ( int  ssock)

Definition at line 1125 of file remote.c.

xmlNode* crm_remote_parse_buffer ( crm_remote_t remote)

Definition at line 530 of file remote.c.

int crm_remote_ready ( crm_remote_t remote,
int  total_timeout 

Definition at line 602 of file remote.c.

gboolean crm_remote_recv ( crm_remote_t remote,
int  total_timeout,
int *  disconnected 

Definition at line 764 of file remote.c.

int crm_remote_send ( crm_remote_t remote,
xmlNode *  msg 

Definition at line 481 of file remote.c.

int crm_remote_tcp_connect ( const char *  host,
int  port 

Definition at line 1090 of file remote.c.

int crm_remote_tcp_connect_async ( const char *  host,
int  port,
int  timeout,
int *  timer_id,
void *  userdata,
void(*)(void *userdata, int sock)  callback 

Definition at line 1006 of file remote.c.

void crm_sockaddr2str ( void *  sa,
char *  s 

Convert an IP address (IPv4 or IPv6) to a string for logging.

[in]saSocket address for IP
[out]sStorage for at least INET6_ADDRSTRLEN bytes
sa The socket address can be a pointer to struct sockaddr_in (IPv4), struct sockaddr_in6 (IPv6) or struct sockaddr_storage (either), as long as its sa_family member is set correctly.

Definition at line 1106 of file remote.c.