encap_header.cpp
Go to the documentation of this file.
1 
27 
28 
29 namespace eip {
30 
31 using serialization::Reader;
32 using serialization::Writer;
33 
34 
35 Writer& EncapHeader::serialize(Writer& writer) const
36 {
37  writer.write(command);
38  writer.write(length);
39  writer.write(session_handle);
40  writer.write(status);
41  writer.write(context);
42  writer.write(options);
43  return writer;
44 }
45 
46 Reader& EncapHeader::deserialize(Reader& reader)
47 {
48  reader.read(command);
49  reader.read(length);
50  reader.read(session_handle);
51  reader.read(status);
52  reader.read(context);
53  reader.read(options);
54  return reader;
55 }
56 
57 } // namespace eip
virtual Writer & serialize(Writer &writer) const
EIP_UINT command
Definition: encap_header.h:47
EIP_DWORD context[2]
Definition: encap_header.h:51
EIP_UDINT session_handle
Definition: encap_header.h:49
Definition: connection.h:41
EIP_DWORD options
Definition: encap_header.h:52
EIP_DWORD status
Definition: encap_header.h:50
virtual Reader & deserialize(Reader &reader, size_t length)
Definition: encap_header.h:89


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