#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 <inttypes.h>
#include <glib.h>
#include <bzlib.h>
#include <crm/common/ipc_internal.h>
#include <crm/common/xml.h>
#include <crm/common/mainloop.h>
#include <crm/common/remote_internal.h>
Go to the source code of this file.
|
struct remote_header_v0 | __attribute__ ((packed)) |
|
int | pcmk__remote_send_xml (pcmk__remote_t *remote, xmlNode *msg) |
|
xmlNode * | pcmk__remote_message_xml (pcmk__remote_t *remote) |
|
int | pcmk__remote_ready (const pcmk__remote_t *remote, int timeout_ms) |
|
int | pcmk__read_remote_message (pcmk__remote_t *remote, int timeout_ms) |
|
int | pcmk__connect_remote (const char *host, int port, int timeout, int *timer_id, int *sock_fd, void *userdata, void(*callback)(void *userdata, int rc, int sock)) |
|
void | pcmk__sockaddr2str (const void *sa, char *s) |
|
int | pcmk__accept_remote_connection (int ssock, int *csock) |
|
int | crm_default_remote_port (void) |
| Get the default remote connection TCP port on this host. More...
|
|
◆ __swab16
Value:((uint16_t)( \
(((uint16_t)(x) & (uint16_t)0x00ffU) << 8) | \
(((uint16_t)(x) & (uint16_t)0xff00U) >> 8)))
Definition at line 48 of file remote.c.
◆ __swab32
Value:((uint32_t)( \
(((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \
(((uint32_t)(x) & (uint32_t)0x0000ff00UL) << 8) | \
(((uint32_t)(x) & (uint32_t)0x00ff0000UL) >> 8) | \
(((uint32_t)(x) & (uint32_t)0xff000000UL) >> 24)))
Definition at line 52 of file remote.c.
◆ __swab64
Value:((uint64_t)( \
(((uint64_t)(x) & (uint64_t)0x00000000000000ffULL) << 56) | \
(((uint64_t)(x) & (uint64_t)0x000000000000ff00ULL) << 40) | \
(((uint64_t)(x) & (uint64_t)0x0000000000ff0000ULL) << 24) | \
(((uint64_t)(x) & (uint64_t)0x00000000ff000000ULL) << 8) | \
(((uint64_t)(x) & (uint64_t)0x000000ff00000000ULL) >> 8) | \
(((uint64_t)(x) & (uint64_t)0x0000ff0000000000ULL) >> 24) | \
(((uint64_t)(x) & (uint64_t)0x00ff000000000000ULL) >> 40) | \
(((uint64_t)(x) & (uint64_t)0xff00000000000000ULL) >> 56)))
Definition at line 58 of file remote.c.
◆ ENDIAN_LOCAL
#define ENDIAN_LOCAL 0xBADADBBD |
◆ REMOTE_MSG_VERSION
#define REMOTE_MSG_VERSION 1 |
◆ __attribute__()
struct remote_header_v0 __attribute__ |
( |
(packed) |
| ) |
|
◆ crm_default_remote_port()
int crm_default_remote_port |
( |
void |
| ) |
|
Get the default remote connection TCP port on this host.
- Returns
- Remote connection TCP port number
Definition at line 1250 of file remote.c.
◆ pcmk__accept_remote_connection()
int pcmk__accept_remote_connection |
( |
int |
ssock, |
|
|
int * |
csock |
|
) |
| |
◆ pcmk__connect_remote()
int pcmk__connect_remote |
( |
const char * |
host, |
|
|
int |
port, |
|
|
int |
timeout, |
|
|
int * |
timer_id, |
|
|
int * |
sock_fd, |
|
|
void * |
userdata, |
|
|
void(*)(void *userdata, int rc, int sock) |
callback |
|
) |
| |
◆ pcmk__read_remote_message()
int pcmk__read_remote_message |
( |
pcmk__remote_t * |
remote, |
|
|
int |
timeout_ms |
|
) |
| |
◆ pcmk__remote_message_xml()
◆ pcmk__remote_ready()
int pcmk__remote_ready |
( |
const pcmk__remote_t * |
remote, |
|
|
int |
timeout_ms |
|
) |
| |
◆ pcmk__remote_send_xml()
◆ pcmk__sockaddr2str()
void pcmk__sockaddr2str |
( |
const void * |
sa, |
|
|
char * |
s |
|
) |
| |
◆ __attribute__
struct tcp_async_cb_data __attribute__ |
◆ endian
◆ flags
◆ id
◆ payload_compressed
uint32_t payload_compressed |
◆ payload_offset
◆ payload_uncompressed
uint32_t payload_uncompressed |
◆ size_total
◆ version