Class MessageRouter¶
Defined in File MessageRouter.h
Class Documentation¶
-
class
MessageRouter
¶ Implements the explicit messaging with EIP adapter.
Public Types
-
using
SPtr
= std::shared_ptr<MessageRouter>¶
Public Functions
-
MessageRouter
(bool use_8_bit_path_segments = false)¶ Default constructor.
-
~MessageRouter
()¶ Default destructor.
-
MessageRouterResponse
sendRequest
(SessionInfoIf::SPtr si, cip::CipUsint service, const cip::EPath &path, const std::vector<uint8_t> &data, const std::vector<eip::CommonPacketItem> &additionalPacketItems) const¶ Sends an explicit requests to the EIP adapter by calling a CIP service.
- Return
the received response from the EIP adapter
- Parameters
si
: the EIP session with the adapterservice
: the service code (for standard codes see eipScanner::cip::ServiceCodes)path
: the path to an element in Object Model that provides the called servicedata
: the encoded arguments of the serviceadditionalPacketItems
: (needed only for eipScanner::ConnectionManager)
- Exceptions
std::runtime_error
:std::system_error
:
-
MessageRouterResponse
sendRequest
(SessionInfoIf::SPtr si, cip::CipUsint service, const cip::EPath &path, const std::vector<uint8_t> &data) const¶ Sends an explicit requests to the EIP adapter by calling a CIP service.
- Return
the received response from the EIP adapter
- Parameters
si
: the EIP session with the adapterservice
: the service code (for standard codes see eipScanner::cip::ServiceCodes)path
: the path to an element in Object Model that provides the called servicedata
: the encoded arguments of the service
- Exceptions
std::runtime_error
:std::system_error
:
-
MessageRouterResponse
sendRequest
(SessionInfoIf::SPtr si, cip::CipUsint service, const cip::EPath &path) const¶ Sends an explicit requests to the EIP adapter by calling a CIP service.
- Return
the received response from the EIP adapter
- Parameters
si
: the EIP session with the adapterservice
: the service code (for standard codes see eipScanner::cip::ServiceCodes)path
: the path to an element in Object Model that provides the called service
- Exceptions
std::runtime_error
:std::system_error
:
Public Static Attributes
-
constexpr bool
USE_8_BIT_PATH_SEGMENTS
= true¶
-
using