connection.h
Go to the documentation of this file.
1 
26 #ifndef ODVA_ETHERNETIP_CONNECTION_H
27 #define ODVA_ETHERNETIP_CONNECTION_H
28 
29 #include <string>
30 #include <boost/shared_ptr.hpp>
31 
33 #include "odva_ethernetip/path.h"
38 
39 using boost::shared_ptr;
40 
41 namespace eip {
42 
47 {
48 public:
49 
53 
56 
60 
65 
68 
74  Connection(const EIP_CONNECTION_INFO_T& o_to_t, const EIP_CONNECTION_INFO_T& t_to_o);
75 
81  {
82  return path_;
83  }
84 
90  void setConnectionPoints(EIP_USINT origin, EIP_USINT target);
91 
95  shared_ptr<ForwardOpenRequest> createForwardOpenRequest();
96 
100  shared_ptr<ForwardCloseRequest> createForwardCloseRequest();
101 
106  bool verifyForwardOpenResult(const ForwardOpenSuccess& result);
107 
112  bool verifyForwardCloseResult(const ForwardCloseSuccess& result);
113 
114 private:
116 
117 };
118 
119 } // namespace eip
120 
121 #endif // ODVA_ETHERNETIP_CONNECTION_H
eip::Connection::t_to_o_buffer_size
EIP_UINT t_to_o_buffer_size
Definition: connection.h:67
path.h
eip::Connection::Connection
Connection(const EIP_CONNECTION_INFO_T &o_to_t, const EIP_CONNECTION_INFO_T &t_to_o)
Definition: connection.cpp:36
eip_types.h
EIP_CONNECTION_INFO_T
Definition: eip_types.h:97
eip::ForwardCloseSuccess
Definition: forward_close_success.h:53
eip
Definition: connection.h:41
EIP_BYTE
uint8_t EIP_BYTE
Definition: eip_types.h:35
eip::Connection::connection_sn
EIP_UINT connection_sn
Definition: connection.h:52
forward_close_success.h
eip::Connection::t_to_o_connection_id
EIP_UDINT t_to_o_connection_id
Definition: connection.h:55
EIP_UINT
uint16_t EIP_UINT
Definition: eip_types.h:39
eip::Connection::verifyForwardOpenResult
bool verifyForwardOpenResult(const ForwardOpenSuccess &result)
Definition: connection.cpp:103
eip::Connection::path_
Path path_
Definition: connection.h:115
eip::Connection::timeout_multiplyer
EIP_USINT timeout_multiplyer
Definition: connection.h:59
eip::ForwardOpenSuccess
Definition: forward_open_success.h:53
EIP_USINT
uint8_t EIP_USINT
Definition: eip_types.h:36
eip::Connection::timeout_ticks
EIP_USINT timeout_ticks
Definition: connection.h:58
eip::Connection::verifyForwardCloseResult
bool verifyForwardCloseResult(const ForwardCloseSuccess &result)
Definition: connection.cpp:128
forward_close_request.h
eip::Connection::o_to_t_rpi
EIP_UDINT o_to_t_rpi
Definition: connection.h:61
eip::Connection::o_to_t_api
EIP_UDINT o_to_t_api
Definition: connection.h:63
eip::Connection::createForwardOpenRequest
shared_ptr< ForwardOpenRequest > createForwardOpenRequest()
Definition: connection.cpp:59
eip::Connection::originator_sn
EIP_UDINT originator_sn
Definition: connection.h:51
eip::Connection::o_to_t_buffer_size
EIP_UINT o_to_t_buffer_size
Definition: connection.h:66
eip::Connection::o_to_t_connection_id
EIP_UDINT o_to_t_connection_id
Definition: connection.h:54
forward_open_success.h
forward_open_request.h
eip::Connection::setConnectionPoints
void setConnectionPoints(EIP_USINT origin, EIP_USINT target)
Definition: connection.cpp:50
eip::Connection::timeout_tick_size
EIP_BYTE timeout_tick_size
Definition: connection.h:57
eip::Connection::t_to_o_rpi
EIP_UDINT t_to_o_rpi
Definition: connection.h:62
eip::Connection
Definition: connection.h:46
eip::Connection::getPath
Path & getPath()
Definition: connection.h:80
eip::Connection::originator_vendor_id
EIP_UINT originator_vendor_id
Definition: connection.h:50
eip::Connection::t_to_o_api
EIP_UDINT t_to_o_api
Definition: connection.h:64
EIP_UDINT
uint32_t EIP_UDINT
Definition: eip_types.h:42
eip::Connection::createForwardCloseRequest
shared_ptr< ForwardCloseRequest > createForwardCloseRequest()
Definition: connection.cpp:86
eip::Path
Definition: path.h:50


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