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

Interface for PROFINET DCP device discovery. More...

#include <device.h>

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

Public Member Functions

virtual ~IDcpScanner ()=default
 
virtual dcp::ResponseMap Scan (const std::string &interface, double timeoutSec)=0
 Discover PROFINET devices using DCP.
 

Detailed Description

Interface for PROFINET DCP device discovery.

Separating DCP discovery from ProfinetScanner allows the discovery operation to be replaced by a mock during unit testing.

Definition at line 576 of file device.h.

Constructor & Destructor Documentation

◆ ~IDcpScanner()

virtual profinet::device::IDcpScanner::~IDcpScanner ( )
virtualdefault

Member Function Documentation

◆ Scan()

virtual dcp::ResponseMap profinet::device::IDcpScanner::Scan ( const std::string &  interface,
double  timeoutSec 
)
pure virtual

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.

Implemented in profinet::device::DcpScanner.


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