View on GitHub

Asio Service Discovery

Components for service discovery via udp multicasting. It's using boost::asio for async networking. It's non-blocking and non-locking.

Download this project as a .zip file Download this project as a tar.gz file
betabugs::networking::detail::std_chrono_time_traits< Clock > Struct Template Reference

#include <std_chrono_time_traits.hpp>

Public Types

typedef Clock::time_point time_type
 
typedef Clock::duration duration_type
 

Static Public Member Functions

static time_type now ()
 
static time_type add (time_type t, duration_type d)
 
static duration_type subtract (time_type t1, time_type t2)
 
static bool less_than (time_type t1, time_type t2)
 
static
boost::posix_time::time_duration 
to_posix_duration (duration_type d1)
 

Detailed Description

template<typename Clock>
struct betabugs::networking::detail::std_chrono_time_traits< Clock >

Time trait class to be used with boost::asio::deadline_timer. Enabled usage of std::crono with boost::asio::deadline_timer

typedef boost::asio::basic_deadline_timer< std::system_clock, std_chrono_time_traits<std::system_clock>> my_system_clock_deadline_timer

http://stackoverflow.com/questions/16721243/boostasiodeadline-timer-with-stdchrono-time-values


The documentation for this struct was generated from the following file: