libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
socket_client.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "core/socket_client_manager.hpp"
Include dependency graph for socket_client.cpp:

Go to the source code of this file.

Classes

struct  just_connect
 
struct  message1
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

using lock_t = ppd::api_lock_traits< ppd::generic_traits::api_type::no_api, ppd::sequential_mode >::critical_section_type::lock_type
 
typedef boost::mpl::list< socket::asio::client_manager< lock_t >, socket::glibc::client_manager< lock_t >> client_types
 

Functions

const boost::asio::ip::address localhost (boost::asio::ip::address_v4::loopback())
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (ctor, client_t, client_types)
 

Variables

const unsigned short unused_port =12345u
 
const unsigned short timeout =5
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file socket_client.cpp.

Typedef Documentation

◆ client_types

typedef boost::mpl::list< socket::asio::client_manager<lock_t>, socket::glibc::client_manager<lock_t>> client_types

Definition at line 51 of file socket_client.cpp.

◆ lock_t

using lock_t = ppd::api_lock_traits<ppd::generic_traits::api_type::no_api, ppd::sequential_mode>::critical_section_type::lock_type

Definition at line 46 of file socket_client.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE()

BOOST_AUTO_TEST_CASE_TEMPLATE ( ctor  ,
client_t  ,
client_types   
)

Definition at line 57 of file socket_client.cpp.

References timeout.

◆ localhost()

const boost::asio::ip::address localhost ( boost::asio::ip::address_v4::loopback()  )

Variable Documentation

◆ timeout

const unsigned short timeout =5

Definition at line 32 of file socket_client.cpp.

Referenced by BOOST_AUTO_TEST_CASE_TEMPLATE().

◆ unused_port

const unsigned short unused_port =12345u

Definition at line 31 of file socket_client.cpp.