PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::device::DcpScanner Class Referencefinal

Production implementation of IDcpScanner using DCP over Ethernet. More...

#include <device.h>

+ Inheritance diagram for profinet::device::DcpScanner:
+ Collaboration diagram for profinet::device::DcpScanner:

Public Member Functions

dcp::ResponseMap Scan (const std::string &interface, double timeoutSec) override
 Discover PROFINET devices using DCP.
 
- Public Member Functions inherited from profinet::device::IDcpScanner
virtual ~IDcpScanner ()=default
 

Detailed Description

Production implementation of IDcpScanner using DCP over Ethernet.

Definition at line 589 of file device.h.

Member Function Documentation

◆ Scan()

dcp::ResponseMap profinet::device::DcpScanner::Scan ( const std::string &  interface,
double  timeoutSec 
)
overridevirtual

Discover PROFINET devices using DCP.

Parameters
interfaceNetwork interface used for DCP discovery.
timeoutSecMaximum discovery timeout in seconds.
Returns
DCP responses indexed by device MAC address.

Implements profinet::device::IDcpScanner.

Definition at line 786 of file device.cpp.

References profinet::GetInterfaceMac(), ioContext, profinet::dcp::ReadResponse(), and profinet::dcp::SendDiscover().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: