Public Member Functions | Private Attributes | List of all members
eip::IOScanner Class Reference

#include <io_scanner.h>

Public Member Functions

void handleListIdentityResponse (const boost::system::error_code &ec, std::size_t num_bytes)
 
 IOScanner (boost::asio::io_service &io_service, string hostname)
 
void run ()
 
void sendListIdentityRequest ()
 
virtual ~IOScanner ()
 

Private Attributes

udp::endpoint device_endpoint_
 
string hostname_
 
boost::array< EIP_BYTE, 4 *1024 > recv_buf_
 
udp::socket socket_
 

Detailed Description

Class to scan a network for Ethernet/IP devices

Definition at line 43 of file io_scanner.h.

Constructor & Destructor Documentation

◆ IOScanner()

eip::IOScanner::IOScanner ( boost::asio::io_service &  io_service,
string  hostname 
)

Definition at line 49 of file io_scanner.cpp.

◆ ~IOScanner()

virtual eip::IOScanner::~IOScanner ( )
inlinevirtual

Definition at line 48 of file io_scanner.h.

Member Function Documentation

◆ handleListIdentityResponse()

void eip::IOScanner::handleListIdentityResponse ( const boost::system::error_code &  ec,
std::size_t  num_bytes 
)

Handle list identity responses

Definition at line 76 of file io_scanner.cpp.

◆ run()

void eip::IOScanner::run ( )

Run the scanner indefinitely

Definition at line 160 of file io_scanner.cpp.

◆ sendListIdentityRequest()

void eip::IOScanner::sendListIdentityRequest ( )

Send the list identity request message

Definition at line 61 of file io_scanner.cpp.

Member Data Documentation

◆ device_endpoint_

udp::endpoint eip::IOScanner::device_endpoint_
private

Definition at line 72 of file io_scanner.h.

◆ hostname_

string eip::IOScanner::hostname_
private

Definition at line 70 of file io_scanner.h.

◆ recv_buf_

boost::array<EIP_BYTE, 4*1024> eip::IOScanner::recv_buf_
private

Definition at line 73 of file io_scanner.h.

◆ socket_

udp::socket eip::IOScanner::socket_
private

Definition at line 71 of file io_scanner.h.


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


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Wed Mar 2 2022 00:38:56