Public Member Functions | Private Attributes
eip::IOScanner Class Reference

#include <io_scanner.h>

List of all members.

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

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

Definition at line 49 of file io_scanner.cpp.

virtual eip::IOScanner::~IOScanner ( ) [inline, virtual]

Definition at line 48 of file io_scanner.h.


Member Function Documentation

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 the scanner indefinitely

Definition at line 162 of file io_scanner.cpp.

Send the list identity request message

Definition at line 61 of file io_scanner.cpp.


Member Data Documentation

udp::endpoint eip::IOScanner::device_endpoint_ [private]

Definition at line 72 of file io_scanner.h.

string eip::IOScanner::hostname_ [private]

Definition at line 70 of file io_scanner.h.

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

Definition at line 73 of file io_scanner.h.

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 Sat Jun 8 2019 20:21:23