18 #ifndef GZ_TRANSPORT_NODESHARED_HH_
19 #define GZ_TRANSPORT_NODESHARED_HH_
23 #pragma warning(disable: 4251)
25 #include <google/protobuf/message.h>
38 #include "gz/transport/config.hh"
39 #include "gz/transport/Export.hh"
55 inline namespace GZ_TRANSPORT_VERSION_NAMESPACE {
62 class NodeSharedPrivate;
75 public:
void RunReceptionTask();
90 const size_t _dataSize,
95 public:
void RecvMsgUpdate();
172 public:
void TriggerCallbacks(
180 public:
void RecvControlUpdate();
183 public:
void RecvSrvRequest();
186 public:
void RecvSrvResponse();
193 public:
void SendPendingRemoteReqs(
const std::string &_topic,
229 public:
bool TopicPublishers(
const std::string &_topic,
238 public:
bool DiscoverService(
const std::string &_topic)
const;
257 public:
int RcvHwm();
269 public:
int SndHwm();
277 public:
void EnableStats(
const std::string &_topic,
bool _enable,
286 public: std::optional<TopicStatistics> TopicStats(
298 private:
bool InitializeSockets();
313 #pragma warning(push)
314 #pragma warning(disable: 4251)
329 public:
static const int kDefaultMsgDiscPort = 10317;
332 public:
static const int kDefaultSrvDiscPort = 10318;
335 public:
int msgDiscPort = kDefaultMsgDiscPort;
338 public:
int srvDiscPort = kDefaultSrvDiscPort;
364 public:
bool HasSubscriber(
373 public:
bool HasSubscriber(
394 public:
bool RemoveHandlersForNode(
412 #pragma warning(push)
413 #pragma warning(disable: 4251)
444 private:
friend Node;
445 private:
friend NodePrivate;