25 #include <boost/shared_ptr.hpp> 47 std::list< std::pair<msgs::Publish, transport::ConnectionPtr> >
52 std::list< std::pair<msgs::Subscribe, transport::ConnectionPtr> >
63 public:
void Init(uint16_t _port);
69 public:
void RunThread();
72 public:
void RunOnce();
83 private:
void SendSubscribers(
const std::string &_topic,
84 const std::string &_buffer);
90 private:
void ProcessMessage(
const unsigned int _connectionIndex,
91 const std::string &_data);
97 private:
void OnRead(
const unsigned int _connectionIndex,
98 const std::string &_data);
107 private: msgs::Publish GetPublisher(
const std::string &_topic);
119 private:
void RemoveConnection(Connection_M::iterator _connIter);
124 private:
void RemovePublisher(
const msgs::Publish _pub);
129 private:
void RemoveSubscriber(
const msgs::Subscribe _sub);
133 private: std::unique_ptr<MasterPrivate> dataPtr;
std::map< unsigned int, transport::ConnectionPtr > Connection_M
Definition: Master.hh:43
A manager that directs topic connections, enables each gazebo network client to locate one another fo...
Definition: Master.hh:39
Forward declarations for the common classes.
Definition: Animation.hh:26
boost::shared_ptr< Connection > ConnectionPtr
Definition: Connection.hh:51
std::list< std::pair< msgs::Subscribe, transport::ConnectionPtr > > SubList
Definition: Master.hh:53
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
std::list< std::pair< msgs::Publish, transport::ConnectionPtr > > PubList
Definition: Master.hh:48
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59