17 #ifndef CYBER_TRANSPORT_SHM_MULTICAST_NOTIFIER_H_ 18 #define CYBER_TRANSPORT_SHM_MULTICAST_NOTIFIER_H_ 20 #include <netinet/in.h> 38 static const char*
Type() {
return "multicast"; }
44 struct sockaddr_in notify_addr_;
46 struct sockaddr_in listen_addr_;
48 std::atomic<bool> is_shutdown_ = {
false};
57 #endif // CYBER_TRANSPORT_SHM_MULTICAST_NOTIFIER_H_
static const char * Type()
Definition: multicast_notifier.h:38
virtual ~MulticastNotifier()
Definition: multicast_notifier.h:30
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool Listen(int timeout_ms, ReadableInfo *info) override
Definition: readable_info.h:32
Definition: notifier_base.h:31
#define DECLARE_SINGLETON(classname)
Definition: macros.h:52
bool Notify(const ReadableInfo &info) override