![]() |
pacemaker
1.1.16-94ff4df
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <crm/crm.h>
#include <sys/param.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <glib.h>
#include <bzlib.h>
#include <crm/common/ipcs.h>
#include <crm/common/xml.h>
#include <crm/common/mainloop.h>
Go to the source code of this file.
Macros | |
#define | __swab16(x) |
#define | __swab32(x) |
#define | __swab64(x) |
#define | REMOTE_MSG_VERSION 1 |
#define | ENDIAN_LOCAL 0xBADADBBD |
Functions | |
struct crm_remote_header_v0 | __attribute__ ((packed)) |
int | crm_remote_send (crm_remote_t *remote, xmlNode *msg) |
xmlNode * | crm_remote_parse_buffer (crm_remote_t *remote) |
int | crm_remote_ready (crm_remote_t *remote, int total_timeout) |
gboolean | crm_remote_recv (crm_remote_t *remote, int total_timeout, int *disconnected) |
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_tcp_connect (const char *host, int port) |
int | crm_remote_accept (int ssock) |
Variables | |
uint32_t | endian |
uint32_t | version |
uint64_t | id |
uint64_t | flags |
uint32_t | size_total |
uint32_t | payload_offset |
uint32_t | payload_compressed |
uint32_t | payload_uncompressed |
struct tcp_async_cb_data | __attribute__ |
#define __swab16 | ( | x | ) |
#define __swab32 | ( | x | ) |
#define __swab64 | ( | x | ) |
struct crm_remote_header_v0 __attribute__ | ( | (packed) | ) |
xmlNode* crm_remote_parse_buffer | ( | crm_remote_t * | remote | ) |
int crm_remote_ready | ( | crm_remote_t * | remote, |
int | total_timeout | ||
) |
gboolean crm_remote_recv | ( | crm_remote_t * | remote, |
int | total_timeout, | ||
int * | disconnected | ||
) |
int crm_remote_send | ( | crm_remote_t * | remote, |
xmlNode * | msg | ||
) |
int crm_remote_tcp_connect_async | ( | const char * | host, |
int | port, | ||
int | timeout, | ||
int * | timer_id, | ||
void * | userdata, | ||
void(*)(void *userdata, int sock) | callback | ||
) |
struct tcp_async_cb_data __attribute__ |