20 #ifndef MULTICASTSOCKETSPLUGIN_H
21 #define MULTICASTSOCKETSPLUGIN_H
24 #include <IDobbyPlugin.h>
25 #include <PluginBase.h>
27 #include <netinet/in.h>
48 const std::shared_ptr<IDobbyUtils>& utils);
52 std::string
name()
const final;
57 const std::shared_ptr<IDobbyStartState>& startupState,
58 const std::string& rootfsPath,
59 const Json::Value& jsonData)
final;
76 const std::string mName;
77 const std::shared_ptr<IDobbyUtils> mUtilities;
A wrapper around a std::string, used to add some type definition to to an id and also to sanity check...
Definition: ContainerId.h:41
Plugin used to setup multicast server and client sockets out of the container and passes their file d...
Definition: MulticastSocketsPlugin.h:45
int createClientSocket()
Creates client udp socket.
Definition: MulticastSocketsPlugin.cpp:331
unsigned hookHints() const final
Indiciates which hook points we want and whether to run the asynchronously or synchronously with the ...
Definition: MulticastSocketsPlugin.cpp:66
std::vector< MulticastSocket > parseServerSocketsArray(const Json::Value &jsonData) const
Parses and verifies server socket data from json array.
Definition: MulticastSocketsPlugin.cpp:166
std::string name() const final
Boilerplate that just returns the name of the hook.
Definition: MulticastSocketsPlugin.cpp:54
int createServerSocket(in_addr_t ip, in_port_t port)
Creates socket and binds it to multicast ip and port.
Definition: MulticastSocketsPlugin.cpp:273
bool postConstruction(const ContainerId &id, const std::shared_ptr< IDobbyStartState > &startupState, const std::string &rootfsPath, const Json::Value &jsonData) final
Creates multicast server and client sockets out of the container and passes their file descriptors to...
Definition: MulticastSocketsPlugin.cpp:98
std::vector< std::string > parseClientSocketsArray(const Json::Value &jsonData) const
Parses and verifies client socket data from json array.
Definition: MulticastSocketsPlugin.cpp:234
Basic object that provides the default overrides for a plugin.
Definition: PluginBase.h:38
Definition: MulticastSocketsPlugin.h:63