![]() |
libzmq
master
ZeroMQ C++ Core Engine (LIBZMQ)
|
Typedefs | |
typedef std::basic_string< unsigned char > | blob_t |
typedef int | fd_t |
typedef void( | thread_fn) (void *) |
typedef void( | timers_timer_fn) (int timer_id, void *arg) |
Enumerations | |
enum | { message_pipe_granularity = 256, command_pipe_granularity = 16, inbound_poll_rate = 100, in_batch_size = 8192, out_batch_size = 8192, max_wm_delta = 1024, max_io_events = 256, max_command_delay = 3000000, clock_precision = 1000000, signaler_port = 0 } |
enum | { retired_fd = -1 } |
enum | { ZMTP_1_0 = 0, ZMTP_2_0 = 1 } |
Functions | |
struct zmq::command_t | __attribute__ ((aligned(64))) |
void | enable_ipv4_mapping (fd_t s_) |
const char * | errno_to_string (int errno_) |
uint32_t | generate_random () |
int | get_peer_ip_address (fd_t sockfd_, std::string &ip_addr_) |
uint16_t | get_uint16 (const unsigned char *buffer_) |
uint32_t | get_uint32 (const unsigned char *buffer_) |
uint64_t | get_uint64 (const unsigned char *buffer_) |
uint8_t | get_uint8 (const unsigned char *buffer_) |
fd_t | open_socket (int domain_, int type_, int protocol_) |
int | pipepair (zmq::object_t *parents_[2], zmq::pipe_t *pipes_[2], int hwms_[2], bool conflate_[2]) |
void | print_backtrace (void) |
int | proxy (class socket_base_t *frontend_, class socket_base_t *backend_, class socket_base_t *capture_, class socket_base_t *control_=NULL) |
void | put_uint16 (unsigned char *buffer_, uint16_t value) |
void | put_uint32 (unsigned char *buffer_, uint32_t value) |
void | put_uint64 (unsigned char *buffer_, uint64_t value) |
void | put_uint8 (unsigned char *buffer_, uint8_t value) |
void | seed_random () |
void | set_ip_type_of_service (fd_t s_, int iptos) |
void | set_tcp_receive_buffer (fd_t sockfd_, int bufsize_) |
void | set_tcp_send_buffer (fd_t sockfd_, int bufsize_) |
int | tcp_read (fd_t s_, void *data_, size_t size_) |
int | tcp_write (fd_t s_, const void *data_, size_t size_) |
void | tune_tcp_keepalives (fd_t s_, int keepalive_, int keepalive_cnt_, int keepalive_idle_, int keepalive_intvl_) |
void | tune_tcp_maxrt (fd_t sockfd_, int timeout_) |
void | tune_tcp_socket (fd_t s_) |
void | unblock_socket (fd_t s_) |
void | zmq_abort (const char *errmsg_) |
typedef std::basic_string<unsigned char> zmq::blob_t |
typedef void( zmq::thread_fn) (void *) |
Definition at line 44 of file thread.hpp.
typedef void( zmq::timers_timer_fn) (int timer_id, void *arg) |
Definition at line 41 of file timers.hpp.
anonymous enum |
Enumerator | |
---|---|
message_pipe_granularity | |
command_pipe_granularity | |
inbound_poll_rate | |
in_batch_size | |
out_batch_size | |
max_wm_delta | |
max_io_events | |
max_command_delay | |
clock_precision | |
signaler_port |
Definition at line 38 of file config.hpp.
anonymous enum |
Enumerator | |
---|---|
ZMTP_1_0 | |
ZMTP_2_0 |
Definition at line 48 of file stream_engine.hpp.
struct zmq::command_t zmq::__attribute__ | ( | (aligned(64)) | ) |
void zmq::enable_ipv4_mapping | ( | fd_t | s_ | ) |
Definition at line 103 of file ip.cpp.
References errno_assert.
Referenced by zmq::socks_connecter_t::connect_to_proxy(), zmq::tcp_connecter_t::open(), and zmq::tcp_listener_t::set_address().
const char * zmq::errno_to_string | ( | int | errno_ | ) |
Definition at line 33 of file err.cpp.
References EADDRINUSE, EADDRNOTAVAIL, ECONNREFUSED, EFSM, EINPROGRESS, EMTHREAD, ENETDOWN, ENOBUFS, ENOCOMPATPROTO, ENOTSUP, EPROTONOSUPPORT, and ETERM.
Referenced by zmq_strerror().
uint32_t zmq::generate_random | ( | ) |
Definition at line 54 of file random.cpp.
Referenced by zmq::ipc_connecter_t::get_new_reconnect_ivl(), zmq::tcp_connecter_t::get_new_reconnect_ivl(), and zmq::socks_connecter_t::get_new_reconnect_ivl().
Definition at line 123 of file ip.cpp.
References ENOTSOCK, and errno_assert.
Referenced by zmq::stream_engine_t::stream_engine_t().
|
inline |
|
inline |
Definition at line 72 of file wire.hpp.
Referenced by zmq::mechanism_t::parse_metadata().
|
inline |
Definition at line 93 of file wire.hpp.
Referenced by zmq::v1_decoder_t::eight_byte_size_ready(), and zmq::v2_decoder_t::eight_byte_size_ready().
|
inline |
Definition at line 50 of file ip.cpp.
References errno_assert.
Referenced by zmq::socks_connecter_t::connect_to_proxy(), zmq::udp_engine_t::init(), zmq::signaler_t::make_fdpair(), zmq::tcp_connecter_t::open(), zmq::ipc_connecter_t::open(), zmq::tcp_listener_t::set_address(), and zmq::ipc_listener_t::set_address().
int zmq::pipepair | ( | zmq::object_t * | parents_[2], |
zmq::pipe_t * | pipes_[2], | ||
int | hwms_[2], | ||
bool | conflate_[2] | ||
) |
Definition at line 41 of file pipe.cpp.
References alloc_assert, and zmq::pipe_t::set_peer().
Referenced by zmq::socket_base_t::connect(), zmq::session_base_t::process_attach(), and zmq::session_base_t::zap_connect().
void zmq::print_backtrace | ( | void | ) |
Definition at line 441 of file err.cpp.
Referenced by zmq_abort().
int zmq::proxy | ( | class socket_base_t * | frontend_, |
class socket_base_t * | backend_, | ||
class socket_base_t * | capture_, | ||
class socket_base_t * | control_ = NULL |
||
) |
Definition at line 105 of file proxy.cpp.
References capture(), zmq::msg_t::data, forward(), zmq::socket_base_t::getsockopt(), zmq::msg_t::init(), zmq::socket_base_t::recv(), zmq::msg_t::size, unlikely, zmq_assert, zmq_poll(), ZMQ_POLLIN, ZMQ_POLLOUT, and ZMQ_RCVMORE.
Referenced by zmq_device(), zmq_proxy(), and zmq_proxy_steerable().
|
inline |
|
inline |
Definition at line 64 of file wire.hpp.
Referenced by zmq::mechanism_t::add_property(), zmq::stream_t::identify_peer(), and zmq::router_t::identify_peer().
|
inline |
Definition at line 81 of file wire.hpp.
Referenced by zmq::v1_encoder_t::message_ready(), zmq::v2_encoder_t::message_ready(), and zmq::stream_engine_t::plug().
|
inline |
void zmq::seed_random | ( | ) |
Definition at line 44 of file random.cpp.
Definition at line 169 of file ip.cpp.
References errno_assert.
Referenced by zmq::tcp_listener_t::accept(), zmq::socks_connecter_t::connect_to_proxy(), zmq::tcp_connecter_t::open(), and zmq::tcp_listener_t::set_address().
Definition at line 85 of file tcp.cpp.
References errno_assert.
Referenced by zmq::socks_connecter_t::connect_to_proxy(), zmq::tcp_connecter_t::open(), and zmq::tcp_listener_t::set_address().
Definition at line 74 of file tcp.cpp.
References errno_assert.
Referenced by zmq::socks_connecter_t::connect_to_proxy(), zmq::tcp_connecter_t::open(), and zmq::tcp_listener_t::set_address().
Definition at line 248 of file tcp.cpp.
References ENOTSOCK, and errno_assert.
Referenced by zmq::stream_engine_t::handshake(), zmq::stream_engine_t::in_event(), zmq::socks_choice_decoder_t::input(), and zmq::socks_response_decoder_t::input().
Definition at line 187 of file tcp.cpp.
References EMSGSIZE, ENOTSOCK, and errno_assert.
Referenced by zmq::stream_engine_t::out_event(), zmq::socks_greeting_encoder_t::output(), and zmq::socks_request_encoder_t::output().
void zmq::tune_tcp_keepalives | ( | fd_t | s_, |
int | keepalive_, | ||
int | keepalive_cnt_, | ||
int | keepalive_idle_, | ||
int | keepalive_intvl_ | ||
) |
Definition at line 96 of file tcp.cpp.
References errno_assert, and LIBZMQ_UNUSED.
Referenced by zmq::socks_connecter_t::check_proxy_connection(), zmq::tcp_listener_t::in_event(), and zmq::tcp_connecter_t::out_event().
Definition at line 166 of file tcp.cpp.
References errno_assert, and LIBZMQ_UNUSED.
Referenced by zmq::tcp_listener_t::in_event(), and zmq::tcp_connecter_t::out_event().
void zmq::tune_tcp_socket | ( | fd_t | s_ | ) |
Definition at line 51 of file tcp.cpp.
References errno_assert.
Referenced by zmq::socks_connecter_t::check_proxy_connection(), zmq::tcp_listener_t::in_event(), and zmq::tcp_connecter_t::out_event().
void zmq::unblock_socket | ( | fd_t | s_ | ) |
Definition at line 84 of file ip.cpp.
References errno_assert.
Referenced by zmq::socks_connecter_t::connect_to_proxy(), zmq::udp_engine_t::init(), zmq::tcp_connecter_t::open(), zmq::ipc_connecter_t::open(), zmq::signaler_t::signaler_t(), and zmq::stream_engine_t::stream_engine_t().
void zmq::zmq_abort | ( | const char * | errmsg_ | ) |
Definition at line 74 of file err.cpp.
References EADDRINUSE, EADDRNOTAVAIL, EAFNOSUPPORT, ECONNABORTED, ECONNREFUSED, ECONNRESET, EHOSTUNREACH, EMSGSIZE, ENETDOWN, ENETRESET, ENETUNREACH, ENOBUFS, ENOTCONN, ENOTSOCK, EPROTONOSUPPORT, ETIMEDOUT, print_backtrace(), and zmq_assert.