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
uint8_t EIP_USINT
Definition: eip_types.h:36
shared_ptr< ForwardCloseRequest > createForwardCloseRequest()
Definition: connection.cpp:88
EIP_USINT timeout_multiplyer
Definition: connection.h:59
EIP_UINT t_to_o_buffer_size
Definition: connection.h:67
EIP_USINT timeout_ticks
Definition: connection.h:58
shared_ptr< ForwardOpenRequest > createForwardOpenRequest()
Definition: connection.cpp:61
EIP_UDINT t_to_o_connection_id
Definition: connection.h:55
bool verifyForwardOpenResult(const ForwardOpenSuccess &result)
Definition: connection.cpp:105
EIP_UDINT o_to_t_rpi
Definition: connection.h:61
EIP_UDINT originator_sn
Definition: connection.h:51
EIP_UINT o_to_t_buffer_size
Definition: connection.h:66
EIP_UDINT o_to_t_connection_id
Definition: connection.h:54
bool verifyForwardCloseResult(const ForwardCloseSuccess &result)
Definition: connection.cpp:132
uint8_t EIP_BYTE
Definition: eip_types.h:35
Definition: path.h:50
Definition: connection.h:41
void setConnectionPoints(EIP_USINT origin, EIP_USINT target)
Definition: connection.cpp:52
EIP_UDINT o_to_t_api
Definition: connection.h:63
uint16_t EIP_UINT
Definition: eip_types.h:39
uint32_t EIP_UDINT
Definition: eip_types.h:42
Path & getPath()
Definition: connection.h:80
EIP_UDINT t_to_o_rpi
Definition: connection.h:62
EIP_UDINT t_to_o_api
Definition: connection.h:64
EIP_BYTE timeout_tick_size
Definition: connection.h:57
EIP_UINT originator_vendor_id
Definition: connection.h:50
EIP_UINT connection_sn
Definition: connection.h:52
Connection(const EIP_CONNECTION_INFO_T &o_to_t, const EIP_CONNECTION_INFO_T &t_to_o)
Definition: connection.cpp:38


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Mon Jun 10 2019 14:00:16