Macros | Functions | Variables
mechanism.cpp File Reference
#include "precompiled.hpp"
#include <string.h>
#include <limits.h>
#include "mechanism.hpp"
#include "options.hpp"
#include "msg.hpp"
#include "err.hpp"
#include "wire.hpp"
#include "session_base.hpp"
Include dependency graph for mechanism.cpp:

Go to the source code of this file.

Macros

#define ZMTP_PROPERTY_IDENTITY   "Identity"
 
#define ZMTP_PROPERTY_SOCKET_TYPE   "Socket-Type"
 

Functions

static size_t name_len (const char *name_)
 
static size_t property_len (size_t name_len_, size_t value_len_)
 
template<size_t N>
static bool strequals (const char *actual_type_, const size_t actual_len_, const char(&expected_type_)[N])
 

Variables

const size_t name_len_size = sizeof (unsigned char)
 
const char socket_type_dealer [] = "DEALER"
 
const char socket_type_pair [] = "PAIR"
 
const char socket_type_pub [] = "PUB"
 
const char socket_type_pull [] = "PULL"
 
const char socket_type_push [] = "PUSH"
 
const char socket_type_rep [] = "REP"
 
const char socket_type_req [] = "REQ"
 
const char socket_type_router [] = "ROUTER"
 
const char socket_type_stream [] = "STREAM"
 
const char socket_type_sub [] = "SUB"
 
const char socket_type_xpub [] = "XPUB"
 
const char socket_type_xsub [] = "XSUB"
 
const size_t value_len_size = sizeof (uint32_t)
 

Macro Definition Documentation

◆ ZMTP_PROPERTY_IDENTITY

#define ZMTP_PROPERTY_IDENTITY   "Identity"

Definition at line 139 of file mechanism.cpp.

◆ ZMTP_PROPERTY_SOCKET_TYPE

#define ZMTP_PROPERTY_SOCKET_TYPE   "Socket-Type"

Definition at line 138 of file mechanism.cpp.

Function Documentation

◆ name_len()

static size_t name_len ( const char *  name_)
static

Definition at line 104 of file mechanism.cpp.

◆ property_len()

static size_t property_len ( size_t  name_len_,
size_t  value_len_ 
)
static

Definition at line 99 of file mechanism.cpp.

◆ strequals()

template<size_t N>
static bool strequals ( const char *  actual_type_,
const size_t  actual_len_,
const char(&)  expected_type_[N] 
)
static

Definition at line 275 of file mechanism.cpp.

Variable Documentation

◆ name_len_size

const size_t name_len_size = sizeof (unsigned char)

Definition at line 96 of file mechanism.cpp.

◆ socket_type_dealer

const char socket_type_dealer[] = "DEALER"

Definition at line 54 of file mechanism.cpp.

◆ socket_type_pair

const char socket_type_pair[] = "PAIR"

Definition at line 49 of file mechanism.cpp.

◆ socket_type_pub

const char socket_type_pub[] = "PUB"

Definition at line 50 of file mechanism.cpp.

◆ socket_type_pull

const char socket_type_pull[] = "PULL"

Definition at line 56 of file mechanism.cpp.

◆ socket_type_push

const char socket_type_push[] = "PUSH"

Definition at line 57 of file mechanism.cpp.

◆ socket_type_rep

const char socket_type_rep[] = "REP"

Definition at line 53 of file mechanism.cpp.

◆ socket_type_req

const char socket_type_req[] = "REQ"

Definition at line 52 of file mechanism.cpp.

◆ socket_type_router

const char socket_type_router[] = "ROUTER"

Definition at line 55 of file mechanism.cpp.

◆ socket_type_stream

const char socket_type_stream[] = "STREAM"

Definition at line 60 of file mechanism.cpp.

◆ socket_type_sub

const char socket_type_sub[] = "SUB"

Definition at line 51 of file mechanism.cpp.

◆ socket_type_xpub

const char socket_type_xpub[] = "XPUB"

Definition at line 58 of file mechanism.cpp.

◆ socket_type_xsub

const char socket_type_xsub[] = "XSUB"

Definition at line 59 of file mechanism.cpp.

◆ value_len_size

const size_t value_len_size = sizeof (uint32_t)

Definition at line 97 of file mechanism.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03