CatapultServer  v0.5.0.1 (Elephant)
TimeSyncPackets.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include "catapult/ionet/Packet.h"
24 
25 namespace catapult { namespace api {
26 
27 #pragma pack(push, 1)
28 
30  struct NetworkTimePacket : public ionet::Packet {
31  public:
32  static constexpr ionet::PacketType Packet_Type = ionet::PacketType::Time_Sync_Network_Time;
33 
36  };
37 
38 #pragma pack(pop)
39 }}
CommunicationTimestamps.h
catapult::api::NetworkTimePacket
A network time response.
Definition: TimeSyncPackets.h:30
catapult::timesync::CommunicationTimestamps
Represents the network timestamps for sending and receiving a time synchronization request / response...
Definition: CommunicationTimestamps.h:29
catapult::ionet::Packet
A packet header with a data payload.
Definition: Packet.h:32
Packet.h
catapult::ionet::PacketType
PacketType
An enumeration of known packet types.
Definition: PacketType.h:171
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::api::NetworkTimePacket::Packet_Type
static constexpr ionet::PacketType Packet_Type
Definition: TimeSyncPackets.h:32
catapult::api::NetworkTimePacket::CommunicationTimestamps
timesync::CommunicationTimestamps CommunicationTimestamps
Communication timestamps.
Definition: TimeSyncPackets.h:35