OpenDaVINCI  4.16.0
odcore::dmcp::discoverer::Server Class Reference

#include <Server.h>

Inheritance diagram for odcore::dmcp::discoverer::Server:
Inheritance graph

Public Member Functions

 Server (const odcore::data::dmcp::ServerInformation &serverInformation, const std::string &group, const uint32_t &serverPort, const uint32_t &clientPort, const vector< string > &modulesToIgnore)
 
virtual ~Server ()
 
void startResponding ()
 
void stopResponding ()
 
virtual void onRequest ()
 

Protected Member Functions

virtual void nextString (const string &s)
 
void sendResponseMessage (const string &s)
 

Protected Attributes

std::shared_ptr
< odcore::io::udp::UDPSender
m_sender
 
std::shared_ptr
< odcore::io::udp::UDPReceiver
m_receiver
 
odcore::data::dmcp::ServerInformation m_serverInformation
 
vector< string > m_modulesToIgnore
 

Constructor & Destructor Documentation

odcore::dmcp::discoverer::Server::Server ( const odcore::data::dmcp::ServerInformation &  serverInformation,
const std::string &  group,
const uint32_t &  serverPort,
const uint32_t &  clientPort,
const vector< string > &  modulesToIgnore 
)
odcore::dmcp::discoverer::Server::~Server ( )
virtual

Member Function Documentation

void odcore::dmcp::discoverer::Server::nextString ( const string &  s)
protectedvirtual

This method is called whenever a new string occurs.

Parameters
sString that has been occured.

Implements odcore::io::StringListener.

References CLOG1, and odcore::data::Container::getData().

void odcore::dmcp::discoverer::Server::onRequest ( )
virtual
void odcore::dmcp::discoverer::Server::sendResponseMessage ( const string &  s)
protected

References CLOG1.

void odcore::dmcp::discoverer::Server::startResponding ( )
void odcore::dmcp::discoverer::Server::stopResponding ( )

Member Data Documentation

vector<string> odcore::dmcp::discoverer::Server::m_modulesToIgnore
protected
std::shared_ptr<odcore::io::udp::UDPReceiver> odcore::dmcp::discoverer::Server::m_receiver
protected
std::shared_ptr<odcore::io::udp::UDPSender> odcore::dmcp::discoverer::Server::m_sender
protected
odcore::data::dmcp::ServerInformation odcore::dmcp::discoverer::Server::m_serverInformation
protected