Jump to content

SimTX API/Packets/ListStations: Difference between revisions

From SimTX Wiki
Clanker (talk | contribs)
Clanker moved page SimTX API/Packets/ListStations to SimTX API v24/Packets/ListStations: Archive the v24 protocol reference
Tag: New redirect
 
Clanker (talk | contribs)
Protocol v25 reference: ListStations
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[SimTX API v24/Packets/ListStations]]
{{SimTX API navigation}}
{{SimTX packet
| name = ListStations
| frame = ClientFrame
| field = 30
| member = list_stations
| direction = c2s
| session = [[SimTX API/Control session|Control]], [[SimTX API/Moderation session|moderation]]
| roles = <code>ROLE_CONTROL</code>, <code>ROLE_MODERATION</code>.
| permission = None on control sessions; <code>moderation.manage</code> on moderation sessions
| reply = [[SimTX API/Packets/StationList|StationList]] (moderation: then [[SimTX API/Packets/StationImpactList|StationImpactList]])
| group = control
| file = control.proto
}}
'''ListStations''' asks for the list of stations on the server. The server answers with [[SimTX API/Packets/StationList|StationList]]. On a [[SimTX API/Moderation session|moderation session]] the list includes client addresses and is followed by [[SimTX API/Packets/StationImpactList|StationImpactList]].
 
== Definition ==
<syntaxhighlight lang="protobuf">
message ListStations {
  int64 request_id = 1;
  bool include_sessions = 2;
}
</syntaxhighlight>
 
== Fields ==
{| class="wikitable"
! # !! Field !! Type !! Description
|-
| 1 || <code>request_id</code> || <code>int64</code> || Nonzero; echoed in the [[SimTX API/Packets/StationList|StationList]].
|-
| 2 || <code>include_sessions</code> || <code>bool</code> || Ignored by current servers, which always list live sessions. Send <code>true</code>.
|}
 
== Rate limiting ==
ListStations is a heavy request. Poll it every few seconds at most; the per-address heavy budget is 4 per second, shared by all control connections from the address.
 
== Example ==
Complete frames, including the varint length prefix, from the protocol's golden test vectors (<code>protocol/simtx/v25/testdata/frames.json</code>).
 
'''<code>list_stations</code>''' (client to server, 8 bytes):
 
<syntaxhighlight lang="text">
07        frame length 7
F2 01 04  list_stations (ListStations), 4 bytes
  08 05  request_id = 5
  10 01  include_sessions = true
</syntaxhighlight>
 
== See also ==
* [[SimTX API/Packets/StationList|StationList]]
* [[SimTX API/Control session#Station list|Station list]]
 
{{SimTX API navbox}}
[[Category:SimTX API]]

Revision as of 17:00, 24 October 2026

ListStations
Frame ClientFrame, field 30
Member list_stations
Direction Client → server
Session Control, moderation
Roles ROLE_CONTROL, ROLE_MODERATION.
Permission None on control sessions; moderation.manage on moderation sessions
Answered by StationList (moderation: then StationImpactList)
Answers
Defined in control.proto

ListStations asks for the list of stations on the server. The server answers with StationList. On a moderation session the list includes client addresses and is followed by StationImpactList.

Definition

message ListStations {
  int64 request_id = 1;
  bool include_sessions = 2;
}

Fields

# Field Type Description
1 request_id int64 Nonzero; echoed in the StationList.
2 include_sessions bool Ignored by current servers, which always list live sessions. Send true.

Rate limiting

ListStations is a heavy request. Poll it every few seconds at most; the per-address heavy budget is 4 per second, shared by all control connections from the address.

Example

Complete frames, including the varint length prefix, from the protocol's golden test vectors (protocol/simtx/v25/testdata/frames.json).

list_stations (client to server, 8 bytes):

07        frame length 7
F2 01 04  list_stations (ListStations), 4 bytes
  08 05   request_id = 5
  10 01   include_sessions = true

See also

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