Package com.marswars.proxy_server
Class TimesyncRequest
java.lang.Object
com.marswars.proxy_server.TimesyncRequest
- All Implemented Interfaces:
Packet
Packet handler for time synchronization requests.
Provides functionality to parse incoming timesync request packets
containing client timing information for precision time coordination.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData structure containing time synchronization request information.Nested classes/interfaces inherited from interface com.marswars.proxy_server.Packet
Packet.Timestamp -
Field Summary
FieldsFields inherited from interface com.marswars.proxy_server.Packet
HEADER_SIZE, ID_IDX, PACKET_ID_IDX, TIME_NSEC_IDX, TIME_SEC_IDX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionupdateData(byte[] buffer) Parses timesync request packet data from a received byte buffer.
-
Field Details
-
TYPE_ID
public static final int TYPE_ID- See Also:
-
-
Constructor Details
-
TimesyncRequest
public TimesyncRequest()
-
-
Method Details
-
updateData
Parses timesync request packet data from a received byte buffer. Extracts request ID and client timestamps from the buffer.- Parameters:
buffer- the byte buffer containing the packet data- Returns:
- TimesyncRequestData object with parsed information
-