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

#include <service_discoverer.hpp>

Public Member Functions

bool operator< (const service &o) const
 
bool operator== (const service &o) const
 
double age_in_seconds () const
 

Public Attributes

std::string service_name
the name of the service
 
std::string computer_name
the name of the computer the service is running on
 
boost::asio::ip::tcp::endpoint endpoint
enpoint you should connect to. Even though, it's an tcp endpoint, it's up to you, what you do with the data.
 
std::chrono::steady_clock::time_point last_seen
 

Friends

std::ostream & operator<< (std::ostream &os, const service_discoverer::service &service)
 

Detailed Description

Represents a discovered service


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