#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_ |
Class to scan a network for Ethernet/IP devices
Definition at line 43 of file io_scanner.h.
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.
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.
void eip::IOScanner::run | ( | ) |
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.
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.