14 #include <sys/types.h>    19 #define MIN_MSG_SIZE    12336    // sizeof(struct qb_ipc_connection_response)    20 #define MAX_MSG_SIZE    128*1024 // 128k default    33     static unsigned int global_max = 0;
    35     if (global_max == 0) {
    40             || (global_ll <= 0)) {
    46         } 
else if (global_ll > UINT_MAX) {
    47             global_max = UINT_MAX;
    50             global_max = (
unsigned int) global_ll;
    53     return QB_MAX(max, global_max);
    64     static unsigned int default_size = 0;
    66     if (default_size == 0) {
    84         crm_err(
"IPC message without header");
    88         crm_err(
"Filtering incompatible v%d IPC message (only versions <= %d supported)",
    98     switch (client_type) {
   103 #ifdef HAVE_GNUTLS_GNUTLS_H   104         case pcmk__client_tls:
 Client uses TCP connection. 
 
unsigned int pcmk__ipc_buffer_size(unsigned int max)
 
int pcmk__scan_ll(const char *text, long long *result, long long default_value)
 
bool pcmk__valid_ipc_header(const pcmk__ipc_header_t *header)
 
#define PCMK__IPC_VERSION
 
unsigned int crm_ipc_default_buffer_size(void)
Return pacemaker's default IPC buffer size. 
 
#define crm_err(fmt, args...)
 
const char * pcmk__client_type_str(uint64_t client_type)