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::serialization::Writer
Definition:
writer.h:41
eip::serialization::Reader
Definition:
reader.h:42
eip::EncapHeader::options
EIP_DWORD options
Definition:
encap_header.h:52
eip
Definition:
connection.h:41
eip::EncapHeader::context
EIP_DWORD context[2]
Definition:
encap_header.h:51
eip::serialization::Writer::write
void write(const T &v)
Definition:
writer.h:50
eip::EncapHeader::status
EIP_DWORD status
Definition:
encap_header.h:50
eip::serialization::Reader::read
void read(T &v)
Definition:
reader.h:51
eip::EncapHeader::session_handle
EIP_UDINT session_handle
Definition:
encap_header.h:49
eip::EncapHeader::command
EIP_UINT command
Definition:
encap_header.h:47
eip::EncapHeader::deserialize
virtual Reader & deserialize(Reader &reader, size_t length)
Definition:
encap_header.h:89
eip::EncapHeader::length
EIP_UINT length
Definition:
encap_header.h:48
eip::EncapHeader::serialize
virtual Writer & serialize(Writer &writer) const
Definition:
encap_header.cpp:35
odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Wed Mar 2 2022 00:38:55