Class DiscoveryManager¶
Defined in File DiscoveryManager.h
Class Documentation¶
-
class
DiscoveryManager
¶ Implements the discovery of EIP devices in the network.
Public Functions
-
DiscoveryManager
(const std::string &broadCastAddress, int port, std::chrono::milliseconds receiveTimout)¶ Constructor.
- Parameters
broadCastAddress
: the broadcast address to send a request (e.g. 172.28.255.255 or 192.168.1.255)port
: the port of the discovery (default 0xAF12)receiveTimout
: the timeout to wait for responses from the EIP devices
-
~DiscoveryManager
()¶ default destructor
-
IdentityItem::Vec
discover
() const¶ Discovers the EIP network Sends the broadcast request through UDP and collects all the response.
- Return
the vector of IdentityItem for each discovered device.
Protected Functions
-
sockets::BaseSocket::SPtr
makeSocket
() const¶
-