MIRA
Classes | Public Member Functions | Protected Attributes | List of all members
DiscoverService Class Reference

Service that is used to discover other running frameworks in the same network using multicast on. More...

#include <fw/DiscoverService.h>

Classes

struct  AnnounceMessage
 

Public Member Functions

 DiscoverService ()
 
void startReceive ()
 
void handleReceive (const boost::system::error_code &error, std::size_t bytesReceived)
 
void stop ()
 

Protected Attributes

IOService mService
 
boost::asio::ip::udp::socket mSocket
 
boost::asio::ip::udp::endpoint mEndpoint
 
boost::asio::ip::udp::endpoint mSenderEndpoint
 
boost::asio::ip::address mMulticastAddress
 
AnnounceMessage mInfo
 

Detailed Description

Service that is used to discover other running frameworks in the same network using multicast on.

Constructor & Destructor Documentation

◆ DiscoverService()

Member Function Documentation

◆ startReceive()

void startReceive ( )

◆ handleReceive()

void handleReceive ( const boost::system::error_code &  error,
std::size_t  bytesReceived 
)

◆ stop()

void stop ( )
inline

Member Data Documentation

◆ mService

IOService mService
protected

◆ mSocket

boost::asio::ip::udp::socket mSocket
protected

◆ mEndpoint

boost::asio::ip::udp::endpoint mEndpoint
protected

◆ mSenderEndpoint

boost::asio::ip::udp::endpoint mSenderEndpoint
protected

◆ mMulticastAddress

boost::asio::ip::address mMulticastAddress
protected

◆ mInfo

AnnounceMessage mInfo
protected

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