Main Page
Namespaces
Classes
Files
File List
File Members
src
encap_header.cpp
Go to the documentation of this file.
1
26
#include "
odva_ethernetip/encap_header.h
"
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
encap_header.h
eip::EncapHeader::serialize
virtual Writer & serialize(Writer &writer) const
Definition:
encap_header.cpp:35
eip::EncapHeader::command
EIP_UINT command
Definition:
encap_header.h:47
eip::EncapHeader::context
EIP_DWORD context[2]
Definition:
encap_header.h:51
eip::EncapHeader::session_handle
EIP_UDINT session_handle
Definition:
encap_header.h:49
eip
Definition:
connection.h:41
eip::EncapHeader::length
EIP_UINT length
Definition:
encap_header.h:48
eip::EncapHeader::options
EIP_DWORD options
Definition:
encap_header.h:52
eip::EncapHeader::status
EIP_DWORD status
Definition:
encap_header.h:50
eip::EncapHeader::deserialize
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