zmqpp
4.1.2
C++ bindings for 0mq (libzmq)
|
#include <boost/test/unit_test.hpp>
#include <boost/lexical_cast.hpp>
#include "zmqpp/context.hpp"
#include "zmqpp/socket.hpp"
Macros | |
#define | STRINGIFY(x) #x |
#define | CHECK_SET(socket, type, option) check_set<type>(socket, zmqpp::socket_option::option, STRINGIFY(option), false) |
#define | CHECK_SET_POSITIVE(socket, type, option) check_set<type>(socket, zmqpp::socket_option::option, STRINGIFY(option), true) |
#define | CHECK_GET(socket, type, option) check_get<type>(socket, zmqpp::socket_option::option, STRINGIFY(option)) |
#define | CHECK_NOSET(socket, option) check_set<float>(socket, zmqpp::socket_option::option, STRINGIFY(option), false) |
#define | CHECK_NOGET(socket, option) check_get<float>(socket, zmqpp::socket_option::option, STRINGIFY(option)) |
Functions | |
template<typename CheckType , typename WantedType > | |
void | try_set (zmqpp::socket &socket, zmqpp::socket_option const &option, CheckType const &value, std::string const &option_name, std::string const &value_type) |
template<typename CheckType , typename WantedType > | |
void | try_get (zmqpp::socket const &socket, zmqpp::socket_option const &option, std::string const &option_name, std::string const &value_type) |
template<typename Type > | |
void | check_set (zmqpp::socket &socket, zmqpp::socket_option const &option, std::string const &option_name, bool positive_only) |
template<typename Type > | |
void | check_get (zmqpp::socket &socket, zmqpp::socket_option const &option, std::string const &option_name) |
BOOST_AUTO_TEST_CASE (set_socket_options) | |
BOOST_AUTO_TEST_CASE (set_socket_options_tcp_only) | |
BOOST_AUTO_TEST_CASE (set_socket_options_router_types) | |
BOOST_AUTO_TEST_CASE (set_socket_options_request_types) | |
BOOST_AUTO_TEST_CASE (get_socket_options) | |
BOOST_AUTO_TEST_CASE (get_socket_options_tcp_only) | |
#define CHECK_GET | ( | socket, | |
type, | |||
option | |||
) | check_get<type>(socket, zmqpp::socket_option::option, STRINGIFY(option)) |
#define CHECK_NOGET | ( | socket, | |
option | |||
) | check_get<float>(socket, zmqpp::socket_option::option, STRINGIFY(option)) |
#define CHECK_NOSET | ( | socket, | |
option | |||
) | check_set<float>(socket, zmqpp::socket_option::option, STRINGIFY(option), false) |
#define CHECK_SET | ( | socket, | |
type, | |||
option | |||
) | check_set<type>(socket, zmqpp::socket_option::option, STRINGIFY(option), false) |
#define CHECK_SET_POSITIVE | ( | socket, | |
type, | |||
option | |||
) | check_set<type>(socket, zmqpp::socket_option::option, STRINGIFY(option), true) |
#define STRINGIFY | ( | x | ) | #x |
BOOST_AUTO_TEST_CASE | ( | set_socket_options | ) |
BOOST_AUTO_TEST_CASE | ( | set_socket_options_tcp_only | ) |
BOOST_AUTO_TEST_CASE | ( | set_socket_options_router_types | ) |
BOOST_AUTO_TEST_CASE | ( | set_socket_options_request_types | ) |
BOOST_AUTO_TEST_CASE | ( | get_socket_options | ) |
BOOST_AUTO_TEST_CASE | ( | get_socket_options_tcp_only | ) |
void check_get | ( | zmqpp::socket & | socket, |
zmqpp::socket_option const & | option, | ||
std::string const & | option_name | ||
) |
void check_set | ( | zmqpp::socket & | socket, |
zmqpp::socket_option const & | option, | ||
std::string const & | option_name, | ||
bool | positive_only | ||
) |
void try_get | ( | zmqpp::socket const & | socket, |
zmqpp::socket_option const & | option, | ||
std::string const & | option_name, | ||
std::string const & | value_type | ||
) |
void try_set | ( | zmqpp::socket & | socket, |
zmqpp::socket_option const & | option, | ||
CheckType const & | value, | ||
std::string const & | option_name, | ||
std::string const & | value_type | ||
) |