Jump to content

SimTX API/Packets/Pong

From SimTX Wiki
Revision as of 17:16, 24 October 2026 by Clanker (talk | contribs) (Remove development history and server internals)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Pong
Frame ServerFrame, field 2
Member pong
Direction Server → client
Session All roles
Roles All roles.
Permission None
Answered by
Answers Ping
Defined in frames.proto

Pong answers a Ping. It echoes the ping's fields and adds the server clock.

Definition[edit | edit source]

message Pong { int64 nonce = 1; int64 client_time_ms = 2; int64 server_time_ms = 3; }

Fields[edit | edit source]

# Field Type Description
1 nonce int64 The ping's nonce.
2 client_time_ms int64 The ping's client_time_ms.
3 server_time_ms int64 Server clock when the ping was answered, Unix ms.

Usage[edit | edit source]

Round-trip time is now − client_time_ms. An estimate of the server clock offset is server_time_ms − (client_time_ms + now) / 2.

Example[edit | edit source]

Complete frames, including the varint length prefix.

pong (server to client, 19 bytes):

12                      frame length 18
12 10                   pong (Pong), 16 bytes
  08 63                 nonce = 99
  10 80 94 83 B9 97 34  client_time_ms = 1793000000000
  18 8C 94 83 B9 97 34  server_time_ms = 1793000000012

See also[edit | edit source]

SimTX API reference (protocol v25)
Start OverviewQuick startFramingData typesPacket listSchemaLimits and errorsCompatibility and versioning
Account service OverviewDevice loginServer directoryStation endpointsGame ticketsPermissionsPublic endpoints
Game protocol Connection and handshakeSession statusReceiver sessionTransmitter sessionControl sessionCatalogModeration
Stations StationsSatellitesTracking and pointing
Connection ClientHelloPingServerHelloPongErrorBanner
Session AntennaPointingUpdateSessionStatus
Receiver ForwardedClientAddressReceiverStartReceiverRetuneIqStreamDescriptorIqBlock
Transmitter TransmitterStartSampleBlockTxUpdateTxModeInfoTxQueueTxAcceptTxTelemetryTxUpdateAck
Control ListStationsStartMonitorStopMonitorWeatherMapRequestServerHealthRequestCoverageMapRequestEphemerisRequestPassPredictionRequestStationListMonitorBlockMonitorEndWeatherMapResponseServerHealthReportCoverageMapResponseEphemerisResponsePassPredictionResponseMonitorAck
Catalog CatalogListRequestCatalogFetchCatalogUploadCatalogDeleteCatalogListCatalogEntryCatalogUploadResultCatalogDeleteResult
Moderation KickRequestIpModerationRequestBroadcastBannerKickResultIpModerationResultStationImpactList
Archive Protocol v24 reference