26 #ifndef ODVA_ETHERNETIP_FORWARD_OPEN_REQUEST_H 27 #define ODVA_ETHERNETIP_FORWARD_OPEN_REQUEST_H 30 #include <boost/shared_ptr.hpp> 38 using boost::shared_ptr;
42 using serialization::Serializable;
43 using serialization::Reader;
44 using serialization::Writer;
95 return (size & 0x7FFF) | (variable ? 0x2000000 : 0) | (priority & 0x03) << 26
96 | (type & 0x03) << 29 | (shared ? 0x80000000 : 0);
135 +
sizeof(timeout_ticks)
137 +
sizeof(t_to_o_connection_id)
139 +
sizeof(originator_vendor_id)
141 +
sizeof(timeout_multiplyer)
143 +
sizeof(o_to_t_conn_params)
145 +
sizeof(t_to_o_conn_params)
160 writer.write(timeout_tick_size);
161 writer.write(timeout_ticks);
162 writer.write(o_to_t_connection_id);
163 writer.write(t_to_o_connection_id);
164 writer.write(connection_sn);
165 writer.write(originator_vendor_id);
166 writer.write(originator_sn);
167 writer.write(timeout_multiplyer);
168 writer.write(reserved);
169 writer.write(reserved);
170 writer.write(reserved);
171 writer.write(o_to_t_rpi);
172 writer.write(o_to_t_conn_params);
173 writer.write(t_to_o_rpi);
174 writer.write(t_to_o_conn_params);
175 writer.write(conn_type);
185 throw std::logic_error(
"Not implemented");
193 throw std::logic_error(
"Not implemented");
202 #endif // ODVA_ETHERNETIP_FORWARD_OPEN_REQUEST_H virtual Reader & deserialize(Reader &reader, size_t length)
EIP_DWORD o_to_t_conn_params
virtual Writer & serialize(Writer &writer) const
static EIP_DWORD calcConnectionParams(EIP_UINT size, bool variable, EIP_BYTE priority, EIP_BYTE type, bool shared)
EIP_BYTE timeout_tick_size
EIP_DWORD t_to_o_conn_params
EIP_DWORD setTargetToOriginParams(EIP_UINT size, bool variable, EIP_BYTE priority, EIP_BYTE type, bool shared)
virtual Writer & serialize(Writer &writer) const
virtual Reader & deserialize(Reader &reader)
EIP_USINT timeout_multiplyer
EIP_UINT originator_vendor_id
EIP_UDINT t_to_o_connection_id
EIP_DWORD setOriginToTargetParams(EIP_UINT size, bool variable, EIP_BYTE priority, EIP_BYTE type, bool shared)
virtual size_t getLength() const
EIP_UDINT o_to_t_connection_id
virtual size_t getLength() const