mirror of
https://codeberg.org/steam-vent/proto-tf2.git
synced 2026-06-03 22:34:10 +02:00
Revert "Update to latest proto definitions from SteamDatabase/Protobufs"
This reverts commit 7a06decd61 for BC.
This commit is contained in:
parent
2033958408
commit
b416f0340e
19 changed files with 44378 additions and 189 deletions
50
protos/steamdatagram_auth_messages.proto
Normal file
50
protos/steamdatagram_auth_messages.proto
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
option cc_generic_services = false;
|
||||||
|
|
||||||
|
message CMsgSteamDatagramRelayAuthTicket {
|
||||||
|
message ExtraField {
|
||||||
|
optional string name = 1;
|
||||||
|
optional string string_value = 2;
|
||||||
|
optional sint64 int64_value = 3;
|
||||||
|
optional fixed64 fixed64_value = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 time_expiry = 1;
|
||||||
|
optional fixed64 authorized_steam_id = 2;
|
||||||
|
optional fixed32 authorized_public_ip = 3;
|
||||||
|
optional fixed64 gameserver_steam_id = 4;
|
||||||
|
optional fixed64 gameserver_net_id = 5;
|
||||||
|
optional bytes legacy_signature = 6;
|
||||||
|
optional uint32 app_id = 7;
|
||||||
|
optional fixed32 gameserver_pop_id = 9;
|
||||||
|
optional uint32 virtual_port = 10;
|
||||||
|
repeated .CMsgSteamDatagramRelayAuthTicket.ExtraField extra_fields = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSignedRelayAuthTicket {
|
||||||
|
optional fixed64 reserved_do_not_use = 1;
|
||||||
|
optional fixed64 key_id = 2;
|
||||||
|
optional bytes ticket = 3;
|
||||||
|
optional bytes signature = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramCertificate {
|
||||||
|
enum EKeyType {
|
||||||
|
INVALID = 0;
|
||||||
|
ED25519 = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramCertificate.EKeyType key_type = 1 [default = INVALID];
|
||||||
|
optional bytes key_data = 2;
|
||||||
|
optional fixed64 steam_id = 4;
|
||||||
|
repeated fixed32 gameserver_datacenter_ids = 5;
|
||||||
|
optional fixed32 time_created = 8;
|
||||||
|
optional fixed32 time_expiry = 9;
|
||||||
|
optional uint32 app_id = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramCertificateSigned {
|
||||||
|
optional bytes cert = 4;
|
||||||
|
optional fixed64 ca_key_id = 5;
|
||||||
|
optional bytes ca_signature = 6;
|
||||||
|
}
|
||||||
|
|
||||||
598
protos/steamdatagram_messages.proto
Normal file
598
protos/steamdatagram_messages.proto
Normal file
|
|
@ -0,0 +1,598 @@
|
||||||
|
import "steamdatagram_auth_messages.proto";
|
||||||
|
|
||||||
|
option cc_generic_services = false;
|
||||||
|
|
||||||
|
enum ESteamDatagramMsgID {
|
||||||
|
k_ESteamDatagramMsg_Invalid = 0;
|
||||||
|
k_ESteamDatagramMsg_RouterPingRequest = 1;
|
||||||
|
k_ESteamDatagramMsg_RouterPingReply = 2;
|
||||||
|
k_ESteamDatagramMsg_GameserverPingRequest = 3;
|
||||||
|
k_ESteamDatagramMsg_GameserverPingReply = 4;
|
||||||
|
k_ESteamDatagramMsg_GameserverSessionRequest = 5;
|
||||||
|
k_ESteamDatagramMsg_GameserverSessionEstablished = 6;
|
||||||
|
k_ESteamDatagramMsg_NoSession = 7;
|
||||||
|
k_ESteamDatagramMsg_Diagnostic = 8;
|
||||||
|
k_ESteamDatagramMsg_DataClientToRouter = 9;
|
||||||
|
k_ESteamDatagramMsg_DataRouterToServer = 10;
|
||||||
|
k_ESteamDatagramMsg_DataServerToRouter = 11;
|
||||||
|
k_ESteamDatagramMsg_DataRouterToClient = 12;
|
||||||
|
k_ESteamDatagramMsg_Stats = 13;
|
||||||
|
k_ESteamDatagramMsg_ClientPingSampleRequest = 14;
|
||||||
|
k_ESteamDatagramMsg_ClientPingSampleReply = 15;
|
||||||
|
k_ESteamDatagramMsg_ClientToRouterSwitchedPrimary = 16;
|
||||||
|
k_ESteamDatagramMsg_RelayHealth = 17;
|
||||||
|
k_ESteamDatagramMsg_ConnectRequest = 18;
|
||||||
|
k_ESteamDatagramMsg_ConnectOK = 19;
|
||||||
|
k_ESteamDatagramMsg_ConnectionClosed = 20;
|
||||||
|
k_ESteamDatagramMsg_NoConnection = 21;
|
||||||
|
k_ESteamDatagramMsg_RelayToRelayPingRequest = 22;
|
||||||
|
k_ESteamDatagramMsg_RelayToRelayPingReply = 23;
|
||||||
|
k_ESteamDatagramMsg_P2PSessionRequest = 24;
|
||||||
|
k_ESteamDatagramMsg_P2PSessionEstablished = 25;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ESteamNetworkingUDPMsgID {
|
||||||
|
k_ESteamNetworkingUDPMsg_ChallengeRequest = 32;
|
||||||
|
k_ESteamNetworkingUDPMsg_ChallengeReply = 33;
|
||||||
|
k_ESteamNetworkingUDPMsg_ConnectRequest = 34;
|
||||||
|
k_ESteamNetworkingUDPMsg_ConnectOK = 35;
|
||||||
|
k_ESteamNetworkingUDPMsg_ConnectionClosed = 36;
|
||||||
|
k_ESteamNetworkingUDPMsg_NoConnection = 37;
|
||||||
|
k_ESteamNetworkingUDPMsg_Stats = 38;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramRouterPingReply {
|
||||||
|
message RouteException {
|
||||||
|
optional fixed32 data_center_id = 1;
|
||||||
|
optional uint32 flags = 2;
|
||||||
|
optional uint32 penalty = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 client_timestamp = 1;
|
||||||
|
repeated fixed32 latency_datacenter_ids = 2 [packed = true];
|
||||||
|
repeated uint32 latency_ping_ms = 3 [packed = true];
|
||||||
|
optional fixed32 your_public_ip = 4;
|
||||||
|
optional fixed32 server_time = 5;
|
||||||
|
optional fixed64 challenge = 6;
|
||||||
|
optional uint32 seconds_until_shutdown = 7;
|
||||||
|
optional fixed32 client_cookie = 8;
|
||||||
|
optional uint32 scoring_penalty_relay_cluster = 9;
|
||||||
|
repeated .CMsgSteamDatagramRouterPingReply.RouteException route_exceptions = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameserverPing {
|
||||||
|
optional uint32 legacy_client_session = 1;
|
||||||
|
optional fixed64 client_steam_id = 2;
|
||||||
|
optional fixed32 client_timestamp = 3;
|
||||||
|
optional fixed32 router_timestamp = 4;
|
||||||
|
optional uint32 router_gameserver_latency = 5;
|
||||||
|
optional uint32 seq_number_router = 6;
|
||||||
|
optional uint32 seq_number_e2e = 7;
|
||||||
|
optional uint32 relay_session_id = 8;
|
||||||
|
optional fixed32 connection_id = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramRelayToRelayPing {
|
||||||
|
optional fixed32 request_timestamp = 1;
|
||||||
|
optional fixed32 request_date = 2;
|
||||||
|
optional fixed32 my_pop_id = 3;
|
||||||
|
optional fixed32 your_pop_id = 4;
|
||||||
|
optional fixed32 checksum = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSessionCryptInfo {
|
||||||
|
enum EKeyType {
|
||||||
|
INVALID = 0;
|
||||||
|
CURVE25519 = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfo.EKeyType key_type = 1 [default = INVALID];
|
||||||
|
optional bytes key_data = 2;
|
||||||
|
optional fixed64 nonce = 3;
|
||||||
|
optional bool is_snp = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSessionCryptInfoSigned {
|
||||||
|
optional bytes info = 1;
|
||||||
|
optional bytes signature = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameserverSessionRequest {
|
||||||
|
optional bytes ticket = 1;
|
||||||
|
optional fixed32 challenge_time = 3;
|
||||||
|
optional fixed64 challenge = 4;
|
||||||
|
optional fixed32 client_connection_id = 5;
|
||||||
|
optional fixed32 server_connection_id = 8;
|
||||||
|
optional uint32 network_config_version = 6;
|
||||||
|
optional uint32 protocol_version = 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameserverSessionEstablished {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed64 gameserver_steam_id = 3;
|
||||||
|
optional uint32 seconds_until_shutdown = 4;
|
||||||
|
optional uint32 legacy_relay_session_id = 5;
|
||||||
|
optional uint32 seq_num_r2c = 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramNoSessionRelayToClient {
|
||||||
|
optional uint32 legacy_relay_session_id = 1;
|
||||||
|
optional fixed32 connection_id = 7;
|
||||||
|
optional fixed32 your_public_ip = 2;
|
||||||
|
optional fixed32 server_time = 3;
|
||||||
|
optional fixed64 challenge = 4;
|
||||||
|
optional uint32 seconds_until_shutdown = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramNoSessionRelayToServer {
|
||||||
|
optional uint32 relay_session_id = 1;
|
||||||
|
optional fixed32 client_connection_id = 7;
|
||||||
|
optional fixed32 server_connection_id = 8;
|
||||||
|
optional fixed64 kludge_pad = 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramDiagnostic {
|
||||||
|
optional uint32 severity = 1;
|
||||||
|
optional string text = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramDataCenterState {
|
||||||
|
message Server {
|
||||||
|
optional string address = 1;
|
||||||
|
optional uint32 ping_ms = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message DataCenter {
|
||||||
|
optional string code = 1;
|
||||||
|
repeated .CMsgSteamDatagramDataCenterState.Server server_sample = 2;
|
||||||
|
repeated .CMsgSteamDatagramDataCenterState.Server relay_sample = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
repeated .CMsgSteamDatagramDataCenterState.DataCenter data_centers = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramLinkInstantaneousStats {
|
||||||
|
optional uint32 out_packets_per_sec_x10 = 1;
|
||||||
|
optional uint32 out_bytes_per_sec = 2;
|
||||||
|
optional uint32 in_packets_per_sec_x10 = 3;
|
||||||
|
optional uint32 in_bytes_per_sec = 4;
|
||||||
|
optional uint32 ping_ms = 5;
|
||||||
|
optional uint32 packets_dropped_pct = 6;
|
||||||
|
optional uint32 packets_weird_sequence_pct = 7;
|
||||||
|
optional uint32 peak_jitter_usec = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramLinkLifetimeStats {
|
||||||
|
optional uint64 packets_sent = 3;
|
||||||
|
optional uint64 kb_sent = 4;
|
||||||
|
optional uint64 packets_recv = 5;
|
||||||
|
optional uint64 kb_recv = 6;
|
||||||
|
optional uint64 packets_recv_sequenced = 7;
|
||||||
|
optional uint64 packets_recv_dropped = 8;
|
||||||
|
optional uint64 packets_recv_out_of_order = 9;
|
||||||
|
optional uint64 packets_recv_duplicate = 10;
|
||||||
|
optional uint64 packets_recv_lurch = 11;
|
||||||
|
optional uint32 quality_histogram_100 = 21;
|
||||||
|
optional uint32 quality_histogram_99 = 22;
|
||||||
|
optional uint32 quality_histogram_97 = 23;
|
||||||
|
optional uint32 quality_histogram_95 = 24;
|
||||||
|
optional uint32 quality_histogram_90 = 25;
|
||||||
|
optional uint32 quality_histogram_75 = 26;
|
||||||
|
optional uint32 quality_histogram_50 = 27;
|
||||||
|
optional uint32 quality_histogram_1 = 28;
|
||||||
|
optional uint32 quality_histogram_dead = 29;
|
||||||
|
optional uint32 quality_ntile_2nd = 30;
|
||||||
|
optional uint32 quality_ntile_5th = 31;
|
||||||
|
optional uint32 quality_ntile_25th = 32;
|
||||||
|
optional uint32 quality_ntile_50th = 33;
|
||||||
|
optional uint32 ping_histogram_25 = 41;
|
||||||
|
optional uint32 ping_histogram_50 = 42;
|
||||||
|
optional uint32 ping_histogram_75 = 43;
|
||||||
|
optional uint32 ping_histogram_100 = 44;
|
||||||
|
optional uint32 ping_histogram_125 = 45;
|
||||||
|
optional uint32 ping_histogram_150 = 46;
|
||||||
|
optional uint32 ping_histogram_200 = 47;
|
||||||
|
optional uint32 ping_histogram_300 = 48;
|
||||||
|
optional uint32 ping_histogram_max = 49;
|
||||||
|
optional uint32 ping_ntile_5th = 50;
|
||||||
|
optional uint32 ping_ntile_50th = 51;
|
||||||
|
optional uint32 ping_ntile_75th = 52;
|
||||||
|
optional uint32 ping_ntile_95th = 53;
|
||||||
|
optional uint32 ping_ntile_98th = 54;
|
||||||
|
optional uint32 jitter_histogram_negligible = 61;
|
||||||
|
optional uint32 jitter_histogram_1 = 62;
|
||||||
|
optional uint32 jitter_histogram_2 = 63;
|
||||||
|
optional uint32 jitter_histogram_5 = 64;
|
||||||
|
optional uint32 jitter_histogram_10 = 65;
|
||||||
|
optional uint32 jitter_histogram_20 = 66;
|
||||||
|
optional uint32 txspeed_max = 67;
|
||||||
|
optional uint32 txspeed_histogram_16 = 68;
|
||||||
|
optional uint32 txspeed_histogram_32 = 69;
|
||||||
|
optional uint32 txspeed_histogram_64 = 70;
|
||||||
|
optional uint32 txspeed_histogram_128 = 71;
|
||||||
|
optional uint32 txspeed_histogram_256 = 72;
|
||||||
|
optional uint32 txspeed_histogram_512 = 73;
|
||||||
|
optional uint32 txspeed_histogram_1024 = 74;
|
||||||
|
optional uint32 txspeed_histogram_max = 75;
|
||||||
|
optional uint32 txspeed_ntile_5th = 76;
|
||||||
|
optional uint32 txspeed_ntile_50th = 77;
|
||||||
|
optional uint32 txspeed_ntile_75th = 78;
|
||||||
|
optional uint32 txspeed_ntile_95th = 79;
|
||||||
|
optional uint32 txspeed_ntile_98th = 80;
|
||||||
|
optional uint32 rxspeed_max = 81;
|
||||||
|
optional uint32 rxspeed_histogram_16 = 82;
|
||||||
|
optional uint32 rxspeed_histogram_32 = 83;
|
||||||
|
optional uint32 rxspeed_histogram_64 = 84;
|
||||||
|
optional uint32 rxspeed_histogram_128 = 85;
|
||||||
|
optional uint32 rxspeed_histogram_256 = 86;
|
||||||
|
optional uint32 rxspeed_histogram_512 = 87;
|
||||||
|
optional uint32 rxspeed_histogram_1024 = 88;
|
||||||
|
optional uint32 rxspeed_histogram_max = 89;
|
||||||
|
optional uint32 rxspeed_ntile_5th = 90;
|
||||||
|
optional uint32 rxspeed_ntile_50th = 91;
|
||||||
|
optional uint32 rxspeed_ntile_75th = 92;
|
||||||
|
optional uint32 rxspeed_ntile_95th = 93;
|
||||||
|
optional uint32 rxspeed_ntile_98th = 94;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionQuality {
|
||||||
|
optional .CMsgSteamDatagramLinkInstantaneousStats instantaneous = 1;
|
||||||
|
optional .CMsgSteamDatagramLinkLifetimeStats lifetime = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsClientToRouter {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality c2r = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality c2s = 2;
|
||||||
|
optional fixed32 legacy_client_timestamp = 3;
|
||||||
|
repeated fixed32 ack_relay = 4;
|
||||||
|
repeated fixed32 ack_e2e = 5;
|
||||||
|
optional uint32 flags = 6;
|
||||||
|
optional fixed32 client_connection_id = 8;
|
||||||
|
optional uint32 seq_num_c2r = 9;
|
||||||
|
optional uint32 seq_num_c2s = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsRouterToClient {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality r2c = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality s2c = 2;
|
||||||
|
optional fixed32 legacy_client_timestamp_from_router = 3;
|
||||||
|
optional fixed32 legacy_client_timestamp_from_server = 4;
|
||||||
|
optional uint32 router_gameserver_latency = 5;
|
||||||
|
optional uint32 seconds_until_shutdown = 6;
|
||||||
|
optional fixed32 migrate_request_ip = 10;
|
||||||
|
optional uint32 migrate_request_port = 11;
|
||||||
|
optional uint32 scoring_penalty_relay_cluster = 12;
|
||||||
|
repeated fixed32 ack_relay = 13;
|
||||||
|
repeated fixed32 ack_e2e = 14;
|
||||||
|
optional uint32 flags = 15;
|
||||||
|
optional fixed32 client_connection_id = 7;
|
||||||
|
optional uint32 seq_num_r2c = 8;
|
||||||
|
optional uint32 seq_num_s2c = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsRouterToServer {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality r2s = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality c2s = 2;
|
||||||
|
optional fixed32 legacy_client_timestamp = 3;
|
||||||
|
optional fixed32 legacy_router_timestamp = 4;
|
||||||
|
repeated fixed32 ack_relay = 10;
|
||||||
|
repeated fixed32 ack_e2e = 11;
|
||||||
|
optional uint32 flags = 12;
|
||||||
|
optional uint32 seq_num_r2s = 5;
|
||||||
|
optional uint32 seq_num_c2s = 6;
|
||||||
|
optional fixed64 client_steam_id = 7;
|
||||||
|
optional uint32 relay_session_id = 8;
|
||||||
|
optional fixed32 client_connection_id = 9;
|
||||||
|
optional fixed32 server_connection_id = 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsServerToRouter {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality s2r = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality s2c = 2;
|
||||||
|
repeated fixed32 ack_relay = 8;
|
||||||
|
repeated fixed32 ack_e2e = 9;
|
||||||
|
optional uint32 flags = 10;
|
||||||
|
optional uint32 seq_num_s2r = 3;
|
||||||
|
optional uint32 seq_num_s2c = 4;
|
||||||
|
optional fixed64 client_steam_id = 5;
|
||||||
|
optional uint32 relay_session_id = 6;
|
||||||
|
optional fixed32 client_connection_id = 7;
|
||||||
|
optional fixed32 server_connection_id = 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramClientPingSampleRequest {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramClientPingSampleReply {
|
||||||
|
message RoutingCluster {
|
||||||
|
optional fixed32 id = 1;
|
||||||
|
optional uint32 front_ping_ms = 2;
|
||||||
|
optional uint32 e2e_ping_ms = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message DataCenter {
|
||||||
|
optional fixed32 data_center_id = 1;
|
||||||
|
optional fixed32 via_relay_id = 2;
|
||||||
|
optional uint32 e2e_ping_ms = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
repeated .CMsgSteamDatagramClientPingSampleReply.RoutingCluster routing_clusters = 2;
|
||||||
|
repeated .CMsgSteamDatagramClientPingSampleReply.DataCenter data_centers = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramClientSwitchedPrimary {
|
||||||
|
message RouterQuality {
|
||||||
|
optional uint32 score = 1;
|
||||||
|
optional uint32 front_ping = 2;
|
||||||
|
optional uint32 back_ping = 3;
|
||||||
|
optional uint32 seconds_until_down = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed32 from_ip = 2;
|
||||||
|
optional uint32 from_port = 3;
|
||||||
|
optional fixed32 from_router_cluster = 4;
|
||||||
|
optional uint32 from_active_time = 5;
|
||||||
|
optional uint32 from_active_packets_recv = 6;
|
||||||
|
optional string from_dropped_reason = 7;
|
||||||
|
optional uint32 gap_ms = 8;
|
||||||
|
optional .CMsgSteamDatagramClientSwitchedPrimary.RouterQuality from_quality_now = 9;
|
||||||
|
optional .CMsgSteamDatagramClientSwitchedPrimary.RouterQuality to_quality_now = 10;
|
||||||
|
optional .CMsgSteamDatagramClientSwitchedPrimary.RouterQuality from_quality_then = 11;
|
||||||
|
optional .CMsgSteamDatagramClientSwitchedPrimary.RouterQuality to_quality_then = 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramRouterHealth {
|
||||||
|
message DataCenter {
|
||||||
|
optional fixed32 datacenter_id = 1;
|
||||||
|
optional uint32 state = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional float cpu_load = 1;
|
||||||
|
optional uint32 active_sessions = 2;
|
||||||
|
optional uint32 data_pkts_sec = 3;
|
||||||
|
optional uint32 other_pkts_sec = 4;
|
||||||
|
optional uint32 seconds_until_shutdown = 5;
|
||||||
|
optional float cpu_cost_per_user = 8;
|
||||||
|
optional float cpu_cost_per_packet = 9;
|
||||||
|
repeated .CMsgSteamDatagramRouterHealth.DataCenter data_centers = 6;
|
||||||
|
optional fixed64 magic = 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectRequest {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed64 client_steam_id = 3;
|
||||||
|
optional fixed64 my_timestamp = 4;
|
||||||
|
optional uint32 ping_est_ms = 5;
|
||||||
|
optional uint32 virtual_port = 9;
|
||||||
|
optional uint32 gameserver_relay_session_id = 2;
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 6;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 7;
|
||||||
|
optional uint32 protocol_version = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectOK {
|
||||||
|
optional fixed32 client_connection_id = 1;
|
||||||
|
optional fixed32 server_connection_id = 7;
|
||||||
|
optional fixed64 your_timestamp = 3;
|
||||||
|
optional uint32 delay_time_usec = 4;
|
||||||
|
optional uint32 gameserver_relay_session_id = 2;
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 5;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 6;
|
||||||
|
optional uint32 protocol_version = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionClosed {
|
||||||
|
enum ERelayMode {
|
||||||
|
None = 0;
|
||||||
|
EndToEnd = 1;
|
||||||
|
ClosedByPeer = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 legacy_client_connection_id = 1;
|
||||||
|
optional fixed32 to_connection_id = 7;
|
||||||
|
optional fixed32 from_connection_id = 8;
|
||||||
|
optional fixed64 peer_steam_id = 3;
|
||||||
|
optional uint32 gameserver_relay_session_id = 2;
|
||||||
|
optional .CMsgSteamDatagramConnectionClosed.ERelayMode relay_mode = 4 [default = None];
|
||||||
|
optional string debug = 5;
|
||||||
|
optional uint32 reason_code = 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramNoConnection {
|
||||||
|
optional fixed32 legacy_client_connection_id = 1;
|
||||||
|
optional fixed32 to_connection_id = 5;
|
||||||
|
optional fixed32 from_connection_id = 6;
|
||||||
|
optional uint32 gameserver_relay_session_id = 2;
|
||||||
|
optional fixed64 peer_steam_id = 3;
|
||||||
|
optional bool end_to_end = 4;
|
||||||
|
optional fixed32 dummy_pad = 1023;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PSessionRequestBody {
|
||||||
|
optional fixed32 challenge_time = 1;
|
||||||
|
optional fixed64 challenge = 2;
|
||||||
|
optional fixed32 my_connection_id = 3;
|
||||||
|
optional fixed64 peer_steam_id = 4;
|
||||||
|
optional fixed32 peer_connection_id = 5;
|
||||||
|
optional uint32 protocol_version = 8;
|
||||||
|
optional uint32 network_config_version = 9;
|
||||||
|
optional fixed32 public_ip = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PSessionRequest {
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 1;
|
||||||
|
optional bytes body = 2;
|
||||||
|
optional bytes signature = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PSessionEstablished {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional uint32 seconds_until_shutdown = 3;
|
||||||
|
optional fixed64 relay_routing_id = 4;
|
||||||
|
optional uint32 seq_num_r2c = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PRoutes {
|
||||||
|
message RelayCluster {
|
||||||
|
optional fixed32 pop_id = 1;
|
||||||
|
optional uint32 ping_ms = 2;
|
||||||
|
optional uint32 score_penalty = 3;
|
||||||
|
optional fixed64 session_relay_routing_id = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Route {
|
||||||
|
optional fixed32 my_pop_id = 1;
|
||||||
|
optional fixed32 your_pop_id = 2;
|
||||||
|
optional uint32 score = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
repeated .CMsgSteamDatagramP2PRoutes.RelayCluster relay_clusters = 1;
|
||||||
|
repeated .CMsgSteamDatagramP2PRoutes.Route routes = 2;
|
||||||
|
optional uint32 revision = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PRendezvous {
|
||||||
|
optional fixed32 to_connection_id = 1;
|
||||||
|
optional .CMsgSteamDatagramP2PRoutes routes = 2;
|
||||||
|
optional uint32 ack_peer_routes_revision = 3;
|
||||||
|
optional .CMsgSteamDatagramConnectRequest connect_request = 4;
|
||||||
|
optional .CMsgSteamDatagramConnectOK connect_ok = 5;
|
||||||
|
optional .CMsgSteamDatagramConnectionClosed connection_closed = 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsP2PClientToRouter {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality c2r = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality c2s = 2;
|
||||||
|
repeated fixed32 ack_relay = 3;
|
||||||
|
repeated fixed32 ack_e2e = 4;
|
||||||
|
optional uint32 flags = 5;
|
||||||
|
optional fixed64 forward_target_relay_routing_id = 6;
|
||||||
|
optional uint32 forward_target_revision = 7;
|
||||||
|
optional .CMsgSteamDatagramP2PRoutes routes = 8;
|
||||||
|
optional uint32 ack_peer_routes_revision = 9;
|
||||||
|
optional fixed32 connection_id = 10;
|
||||||
|
optional uint32 seq_num_c2r = 11;
|
||||||
|
optional uint32 seq_num_c2s = 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsP2PRouterToClient {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality r2c = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality p2c = 2;
|
||||||
|
optional uint32 seconds_until_shutdown = 3;
|
||||||
|
optional fixed32 migrate_request_ip = 4;
|
||||||
|
optional uint32 migrate_request_port = 5;
|
||||||
|
optional uint32 scoring_penalty_relay_cluster = 6;
|
||||||
|
repeated fixed32 ack_relay = 7;
|
||||||
|
repeated fixed32 ack_e2e = 8;
|
||||||
|
optional uint32 flags = 9;
|
||||||
|
optional uint32 ack_forward_target_revision = 10;
|
||||||
|
optional .CMsgSteamDatagramP2PRoutes routes = 11;
|
||||||
|
optional uint32 ack_peer_routes_revision = 12;
|
||||||
|
optional fixed32 connection_id = 13;
|
||||||
|
optional uint32 seq_num_r2c = 14;
|
||||||
|
optional uint32 seq_num_p2c = 15;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ChallengeRequest {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed64 my_timestamp = 3;
|
||||||
|
optional uint32 protocol_version = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ChallengeReply {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed64 challenge = 2;
|
||||||
|
optional fixed64 your_timestamp = 3;
|
||||||
|
optional uint32 protocol_version = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ConnectRequest {
|
||||||
|
optional fixed32 client_connection_id = 1;
|
||||||
|
optional fixed64 challenge = 2;
|
||||||
|
optional fixed64 client_steam_id = 3;
|
||||||
|
optional fixed64 my_timestamp = 5;
|
||||||
|
optional uint32 ping_est_ms = 6;
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 7;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 4;
|
||||||
|
optional uint32 protocol_version = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ConnectOK {
|
||||||
|
optional fixed32 client_connection_id = 1;
|
||||||
|
optional fixed32 server_connection_id = 5;
|
||||||
|
optional fixed64 server_steam_id = 2;
|
||||||
|
optional fixed64 your_timestamp = 3;
|
||||||
|
optional uint32 delay_time_usec = 4;
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 7;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 8;
|
||||||
|
optional uint32 protocol_version = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ConnectionClosed {
|
||||||
|
optional fixed32 legacy_client_connection_id = 1;
|
||||||
|
optional fixed32 to_connection_id = 4;
|
||||||
|
optional fixed32 from_connection_id = 5;
|
||||||
|
optional string debug = 2;
|
||||||
|
optional uint32 reason_code = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_NoConnection {
|
||||||
|
optional fixed32 legacy_client_connection_id = 1;
|
||||||
|
optional fixed32 from_connection_id = 2;
|
||||||
|
optional fixed32 to_connection_id = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_Stats {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality stats = 1;
|
||||||
|
repeated fixed32 ack_e2e = 2;
|
||||||
|
optional uint32 flags = 3;
|
||||||
|
optional fixed32 legacy_client_connection_id = 8;
|
||||||
|
optional fixed32 to_connection_id = 9;
|
||||||
|
optional fixed32 from_connection_id = 10;
|
||||||
|
optional uint32 seq_num = 4;
|
||||||
|
}
|
||||||
|
|
||||||
65
protos/steamdatagram_messages_auth.proto
Normal file
65
protos/steamdatagram_messages_auth.proto
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
import "steamnetworkingsockets_messages_certs.proto";
|
||||||
|
|
||||||
|
option optimize_for = SPEED;
|
||||||
|
option cc_generic_services = false;
|
||||||
|
|
||||||
|
message CMsgSteamDatagramRelayAuthTicket {
|
||||||
|
message ExtraField {
|
||||||
|
optional string name = 1;
|
||||||
|
optional string string_value = 2;
|
||||||
|
optional sint64 int64_value = 3;
|
||||||
|
optional fixed64 fixed64_value = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 time_expiry = 1;
|
||||||
|
optional string authorized_client_identity_string = 14;
|
||||||
|
optional string gameserver_identity_string = 15;
|
||||||
|
optional fixed32 authorized_public_ip = 3;
|
||||||
|
optional bytes gameserver_address = 11;
|
||||||
|
optional uint32 app_id = 7;
|
||||||
|
optional uint32 virtual_port = 10;
|
||||||
|
repeated .CMsgSteamDatagramRelayAuthTicket.ExtraField extra_fields = 8;
|
||||||
|
optional fixed64 legacy_authorized_steam_id = 2;
|
||||||
|
optional fixed64 legacy_gameserver_steam_id = 4;
|
||||||
|
optional fixed32 legacy_gameserver_pop_id = 9;
|
||||||
|
optional bytes legacy_authorized_client_identity_binary = 12;
|
||||||
|
optional bytes legacy_gameserver_identity_binary = 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSignedRelayAuthTicket {
|
||||||
|
optional fixed64 reserved_do_not_use = 1;
|
||||||
|
optional bytes ticket = 3;
|
||||||
|
optional bytes signature = 4;
|
||||||
|
optional fixed64 key_id = 2;
|
||||||
|
repeated .CMsgSteamDatagramCertificateSigned certs = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramCachedCredentialsForApp {
|
||||||
|
optional bytes private_key = 1;
|
||||||
|
optional bytes cert = 2;
|
||||||
|
repeated bytes relay_tickets = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameCoordinatorServerLogin {
|
||||||
|
optional uint32 time_generated = 1;
|
||||||
|
optional uint32 appid = 2;
|
||||||
|
optional bytes routing = 3;
|
||||||
|
optional bytes appdata = 4;
|
||||||
|
optional bytes legacy_identity_binary = 5;
|
||||||
|
optional string identity_string = 6;
|
||||||
|
optional fixed64 dummy_steam_id = 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSignedGameCoordinatorServerLogin {
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 1;
|
||||||
|
optional bytes login = 2;
|
||||||
|
optional bytes signature = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramHostedServerAddressPlaintext {
|
||||||
|
optional fixed32 ipv4 = 1;
|
||||||
|
optional bytes ipv6 = 2;
|
||||||
|
optional uint32 port = 3;
|
||||||
|
optional fixed64 routing_secret = 4;
|
||||||
|
optional uint32 protocol_version = 5;
|
||||||
|
}
|
||||||
518
protos/steamdatagram_messages_sdr.proto
Normal file
518
protos/steamdatagram_messages_sdr.proto
Normal file
|
|
@ -0,0 +1,518 @@
|
||||||
|
import "steamnetworkingsockets_messages_certs.proto";
|
||||||
|
import "steamnetworkingsockets_messages.proto";
|
||||||
|
|
||||||
|
option optimize_for = SPEED;
|
||||||
|
option cc_generic_services = false;
|
||||||
|
|
||||||
|
enum ESteamDatagramMsgID {
|
||||||
|
k_ESteamDatagramMsg_Invalid = 0;
|
||||||
|
k_ESteamDatagramMsg_RouterPingRequest = 1;
|
||||||
|
k_ESteamDatagramMsg_RouterPingReply = 2;
|
||||||
|
k_ESteamDatagramMsg_GameserverPingRequest = 3;
|
||||||
|
k_ESteamDatagramMsg_GameserverSessionRequest = 5;
|
||||||
|
k_ESteamDatagramMsg_GameserverSessionEstablished = 6;
|
||||||
|
k_ESteamDatagramMsg_NoSession = 7;
|
||||||
|
k_ESteamDatagramMsg_Diagnostic = 8;
|
||||||
|
k_ESteamDatagramMsg_DataClientToRouter = 9;
|
||||||
|
k_ESteamDatagramMsg_DataRouterToServer = 10;
|
||||||
|
k_ESteamDatagramMsg_DataServerToRouter = 11;
|
||||||
|
k_ESteamDatagramMsg_DataRouterToClient = 12;
|
||||||
|
k_ESteamDatagramMsg_Stats = 13;
|
||||||
|
k_ESteamDatagramMsg_ClientPingSampleRequest = 14;
|
||||||
|
k_ESteamDatagramMsg_ClientPingSampleReply = 15;
|
||||||
|
k_ESteamDatagramMsg_ClientToRouterSwitchedPrimary = 16;
|
||||||
|
k_ESteamDatagramMsg_RelayHealth = 17;
|
||||||
|
k_ESteamDatagramMsg_ConnectRequest = 18;
|
||||||
|
k_ESteamDatagramMsg_ConnectOK = 19;
|
||||||
|
k_ESteamDatagramMsg_ConnectionClosed = 20;
|
||||||
|
k_ESteamDatagramMsg_NoConnection = 21;
|
||||||
|
k_ESteamDatagramMsg_TicketDecryptRequest = 22;
|
||||||
|
k_ESteamDatagramMsg_TicketDecryptReply = 23;
|
||||||
|
k_ESteamDatagramMsg_P2PSessionRequest = 24;
|
||||||
|
k_ESteamDatagramMsg_P2PSessionEstablished = 25;
|
||||||
|
k_ESteamDatagramMsg_P2PStatsClient = 26;
|
||||||
|
k_ESteamDatagramMsg_P2PStatsRelay = 27;
|
||||||
|
k_ESteamDatagramMsg_P2PBadRoute = 28;
|
||||||
|
k_ESteamDatagramMsg_GameserverPingReply = 29;
|
||||||
|
k_ESteamDatagramMsg_LegacyGameserverRegistration = 30;
|
||||||
|
k_ESteamDatagramMsg_SetSecondaryAddressRequest = 31;
|
||||||
|
k_ESteamDatagramMsg_SetSecondaryAddressResult = 32;
|
||||||
|
k_ESteamDatagramMsg_RelayToRelayPingRequest = 33;
|
||||||
|
k_ESteamDatagramMsg_RelayToRelayPingReply = 34;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamNetworkingIPAddress {
|
||||||
|
optional fixed32 v4 = 1;
|
||||||
|
optional bytes v6 = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSignedMessageGeneric {
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 1;
|
||||||
|
optional bytes signed_data = 2;
|
||||||
|
optional bytes signature = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramRouterPingReply {
|
||||||
|
message RouteException {
|
||||||
|
optional fixed32 data_center_id = 1;
|
||||||
|
optional uint32 flags = 2;
|
||||||
|
optional uint32 penalty = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AltAddress {
|
||||||
|
enum Protocol {
|
||||||
|
DefaultProtocol = 0;
|
||||||
|
NetworkNext = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 ipv4 = 1;
|
||||||
|
optional uint32 port = 2;
|
||||||
|
optional uint32 penalty = 3;
|
||||||
|
optional .CMsgSteamDatagramRouterPingReply.AltAddress.Protocol protocol = 4 [default = DefaultProtocol];
|
||||||
|
optional string id = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum Flags {
|
||||||
|
FLAG_MAYBE_MORE_DATA_CENTERS = 1;
|
||||||
|
FLAG_MAYBE_MORE_ALT_ADDRESSES = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 client_timestamp = 1;
|
||||||
|
repeated fixed32 latency_datacenter_ids = 2 [packed = true];
|
||||||
|
repeated uint32 latency_ping_ms = 3 [packed = true];
|
||||||
|
repeated fixed32 latency_datacenter_ids_p2p = 14 [packed = true];
|
||||||
|
repeated uint32 latency_ping_ms_p2p = 15 [packed = true];
|
||||||
|
optional fixed32 your_public_ip = 4;
|
||||||
|
optional fixed32 your_public_port = 11;
|
||||||
|
optional fixed32 server_time = 5;
|
||||||
|
optional fixed64 challenge = 6;
|
||||||
|
optional uint32 seconds_until_shutdown = 7;
|
||||||
|
optional fixed32 client_cookie = 8;
|
||||||
|
optional uint32 scoring_penalty_relay_cluster = 9;
|
||||||
|
optional uint32 flags = 12;
|
||||||
|
repeated .CMsgSteamDatagramRouterPingReply.RouteException route_exceptions = 10;
|
||||||
|
repeated .CMsgSteamDatagramRouterPingReply.AltAddress alt_addresses = 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameserverPingRequestBody {
|
||||||
|
optional fixed32 relay_popid = 1;
|
||||||
|
optional .CMsgSteamNetworkingIPAddress your_public_ip = 2;
|
||||||
|
optional uint32 your_public_port = 3;
|
||||||
|
optional uint64 relay_unix_time = 4;
|
||||||
|
optional fixed64 routing_secret = 5;
|
||||||
|
repeated .CMsgSteamNetworkingIPAddress my_ips = 6;
|
||||||
|
optional bytes echo = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameserverPingRequestEnvelope {
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 6;
|
||||||
|
optional bytes signed_data = 7;
|
||||||
|
optional bytes signature = 8;
|
||||||
|
optional fixed32 legacy_your_public_ip = 1;
|
||||||
|
optional fixed32 legacy_your_public_port = 5;
|
||||||
|
optional fixed32 legacy_relay_unix_time = 2;
|
||||||
|
optional fixed64 legacy_challenge = 3;
|
||||||
|
optional fixed32 legacy_router_timestamp = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameserverPingReplyData {
|
||||||
|
optional fixed32 echo_relay_unix_time = 2;
|
||||||
|
optional bytes echo = 8;
|
||||||
|
optional fixed64 legacy_challenge = 3;
|
||||||
|
optional fixed32 legacy_router_timestamp = 4;
|
||||||
|
optional fixed32 data_center_id = 5;
|
||||||
|
optional uint32 appid = 6;
|
||||||
|
optional uint32 protocol_version = 7;
|
||||||
|
optional string build = 9;
|
||||||
|
optional uint32 network_config_version = 10;
|
||||||
|
optional fixed32 my_unix_time = 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramNoSessionRelayToClient {
|
||||||
|
optional fixed32 connection_id = 7;
|
||||||
|
optional fixed32 your_public_ip = 2;
|
||||||
|
optional fixed32 your_public_port = 6;
|
||||||
|
optional fixed32 server_time = 3;
|
||||||
|
optional fixed64 challenge = 4;
|
||||||
|
optional uint32 seconds_until_shutdown = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramNoSessionRelayToPeer {
|
||||||
|
optional uint32 legacy_relay_session_id = 1;
|
||||||
|
optional fixed32 from_relay_session_id = 2;
|
||||||
|
optional fixed32 from_connection_id = 7;
|
||||||
|
optional fixed64 kludge_pad = 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramClientPingSampleRequest {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramClientPingSampleReply {
|
||||||
|
message POP {
|
||||||
|
message AltAddress {
|
||||||
|
optional string id = 1;
|
||||||
|
optional uint32 front_ping_ms = 2;
|
||||||
|
optional uint32 penalty = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 pop_id = 1;
|
||||||
|
optional uint32 default_front_ping_ms = 2;
|
||||||
|
optional uint32 cluster_penalty = 4;
|
||||||
|
repeated .CMsgSteamDatagramClientPingSampleReply.POP.AltAddress alt_addresses = 7;
|
||||||
|
optional uint32 default_e2e_ping_ms = 3;
|
||||||
|
optional uint32 default_e2e_score = 5;
|
||||||
|
optional fixed32 p2p_via_peer_relay_pop_id = 6;
|
||||||
|
optional uint32 best_dc_ping_ms = 9;
|
||||||
|
optional uint32 best_dc_score = 10;
|
||||||
|
optional fixed32 best_dc_via_relay_pop_id = 11;
|
||||||
|
optional uint32 default_dc_ping_ms = 12;
|
||||||
|
optional uint32 default_dc_score = 13;
|
||||||
|
optional fixed32 default_dc_via_relay_pop_id = 14;
|
||||||
|
optional uint32 test_dc_ping_ms = 15;
|
||||||
|
optional uint32 test_dc_score = 16;
|
||||||
|
optional fixed32 test_dc_via_relay_pop_id = 17;
|
||||||
|
}
|
||||||
|
|
||||||
|
message LegacyDataCenter {
|
||||||
|
optional fixed32 data_center_id = 1;
|
||||||
|
optional fixed32 best_dc_via_relay_pop_id = 2;
|
||||||
|
optional uint32 best_dc_ping_ms = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional bool override_active = 4;
|
||||||
|
repeated .CMsgSteamDatagramClientPingSampleReply.POP pops = 2;
|
||||||
|
repeated .CMsgSteamDatagramClientPingSampleReply.LegacyDataCenter legacy_data_centers = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramClientSwitchedPrimary {
|
||||||
|
message RouterQuality {
|
||||||
|
optional uint32 score = 1;
|
||||||
|
optional uint32 front_ping = 2;
|
||||||
|
optional uint32 back_ping = 3;
|
||||||
|
optional uint32 seconds_until_down = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed32 from_ip = 2;
|
||||||
|
optional uint32 from_port = 3;
|
||||||
|
optional fixed32 from_router_cluster = 4;
|
||||||
|
optional uint32 from_active_time = 5;
|
||||||
|
optional uint32 from_active_packets_recv = 6;
|
||||||
|
optional string from_dropped_reason = 7;
|
||||||
|
optional uint32 gap_ms = 8;
|
||||||
|
optional .CMsgSteamDatagramClientSwitchedPrimary.RouterQuality from_quality_now = 9;
|
||||||
|
optional .CMsgSteamDatagramClientSwitchedPrimary.RouterQuality to_quality_now = 10;
|
||||||
|
optional .CMsgSteamDatagramClientSwitchedPrimary.RouterQuality from_quality_then = 11;
|
||||||
|
optional .CMsgSteamDatagramClientSwitchedPrimary.RouterQuality to_quality_then = 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectRequest {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed64 my_timestamp = 4;
|
||||||
|
optional uint32 ping_est_ms = 5;
|
||||||
|
optional uint32 virtual_port = 9;
|
||||||
|
optional uint32 gameserver_relay_session_id = 2;
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 6;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 7;
|
||||||
|
optional fixed64 routing_secret = 10;
|
||||||
|
optional fixed64 legacy_client_steam_id = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectOK {
|
||||||
|
optional fixed32 client_connection_id = 1;
|
||||||
|
optional fixed32 server_connection_id = 7;
|
||||||
|
optional fixed64 your_timestamp = 3;
|
||||||
|
optional uint32 delay_time_usec = 4;
|
||||||
|
optional uint32 gameserver_relay_session_id = 2;
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 5;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamNetworkingP2PSDRRoutingSummary {
|
||||||
|
optional uint32 initial_ping = 1;
|
||||||
|
optional uint32 initial_ping_front_local = 2;
|
||||||
|
optional uint32 initial_ping_front_remote = 3;
|
||||||
|
optional uint32 initial_score = 4;
|
||||||
|
optional fixed32 initial_pop_local = 5;
|
||||||
|
optional fixed32 initial_pop_remote = 6;
|
||||||
|
optional uint32 best_ping = 11;
|
||||||
|
optional uint32 best_ping_front_local = 12;
|
||||||
|
optional uint32 best_ping_front_remote = 13;
|
||||||
|
optional uint32 best_score = 14;
|
||||||
|
optional fixed32 best_pop_local = 15;
|
||||||
|
optional fixed32 best_pop_remote = 16;
|
||||||
|
optional uint32 best_time = 17;
|
||||||
|
optional uint32 negotiation_ms = 7;
|
||||||
|
optional uint32 selected_seconds = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PRoutingSummary {
|
||||||
|
optional .CMsgSteamNetworkingICESessionSummary ice = 2;
|
||||||
|
optional .CMsgSteamNetworkingP2PSDRRoutingSummary sdr = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionClosed {
|
||||||
|
enum ERelayMode {
|
||||||
|
None = 0;
|
||||||
|
EndToEnd = 1;
|
||||||
|
ClosedByPeer = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional fixed32 to_connection_id = 7;
|
||||||
|
optional fixed32 from_connection_id = 8;
|
||||||
|
optional string from_identity_string = 15;
|
||||||
|
optional .CMsgSteamNetworkingIdentityLegacyBinary legacy_from_identity_binary = 13;
|
||||||
|
optional fixed64 legacy_from_steam_id = 3;
|
||||||
|
optional uint32 legacy_gameserver_relay_session_id = 2;
|
||||||
|
optional fixed32 to_relay_session_id = 9;
|
||||||
|
optional fixed32 from_relay_session_id = 10;
|
||||||
|
optional bytes forward_target_relay_routing_token = 11;
|
||||||
|
optional uint32 forward_target_revision = 12;
|
||||||
|
optional .CMsgSteamDatagramConnectionClosed.ERelayMode relay_mode = 4 [default = None];
|
||||||
|
optional string debug = 5;
|
||||||
|
optional uint32 reason_code = 6;
|
||||||
|
optional fixed64 routing_secret = 14;
|
||||||
|
optional bool not_primary_session = 16;
|
||||||
|
optional bool not_primary_transport = 19;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_relay = 17;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_e2e = 18;
|
||||||
|
optional .CMsgSteamDatagramP2PRoutingSummary p2p_routing_summary = 21;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramNoConnection {
|
||||||
|
optional fixed32 to_connection_id = 5;
|
||||||
|
optional fixed32 from_connection_id = 6;
|
||||||
|
optional uint32 legacy_gameserver_relay_session_id = 2;
|
||||||
|
optional fixed32 to_relay_session_id = 9;
|
||||||
|
optional fixed32 from_relay_session_id = 10;
|
||||||
|
optional string from_identity_string = 7;
|
||||||
|
optional fixed64 legacy_from_steam_id = 3;
|
||||||
|
optional bool end_to_end = 4;
|
||||||
|
optional bool not_primary_session = 12;
|
||||||
|
optional bool not_primary_transport = 15;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_relay = 13;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_e2e = 14;
|
||||||
|
optional .CMsgSteamDatagramP2PRoutingSummary p2p_routing_summary = 16;
|
||||||
|
optional fixed64 routing_secret = 11;
|
||||||
|
optional fixed32 dummy_pad = 1023;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameserverSessionRequest {
|
||||||
|
optional bytes ticket = 1;
|
||||||
|
optional fixed32 challenge_time = 3;
|
||||||
|
optional fixed64 challenge = 4;
|
||||||
|
optional fixed32 client_connection_id = 5;
|
||||||
|
optional fixed32 server_connection_id = 8;
|
||||||
|
optional uint32 network_config_version = 6;
|
||||||
|
optional uint32 protocol_version = 7;
|
||||||
|
optional string platform = 9;
|
||||||
|
optional string build = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramGameserverSessionEstablished {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional string gameserver_identity_string = 2;
|
||||||
|
optional uint32 seconds_until_shutdown = 4;
|
||||||
|
optional uint32 seq_num_r2c = 6;
|
||||||
|
optional bytes dummy_legacy_identity_binary = 7;
|
||||||
|
optional fixed64 legacy_gameserver_steamid = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsClientToRouter {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
NOT_PRIMARY_SESSION = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_relay = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_e2e = 2;
|
||||||
|
repeated fixed32 ack_relay = 4;
|
||||||
|
repeated fixed32 legacy_ack_e2e = 5;
|
||||||
|
optional uint32 flags = 6;
|
||||||
|
optional fixed32 client_connection_id = 8;
|
||||||
|
optional uint32 seq_num_c2r = 9;
|
||||||
|
optional uint32 seq_num_e2e = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsRouterToClient {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_relay = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_e2e = 2;
|
||||||
|
optional uint32 seconds_until_shutdown = 6;
|
||||||
|
optional fixed32 migrate_request_ip = 10;
|
||||||
|
optional uint32 migrate_request_port = 11;
|
||||||
|
optional uint32 scoring_penalty_relay_cluster = 12;
|
||||||
|
repeated fixed32 ack_relay = 13;
|
||||||
|
repeated fixed32 legacy_ack_e2e = 14;
|
||||||
|
optional uint32 flags = 15;
|
||||||
|
optional fixed32 client_connection_id = 7;
|
||||||
|
optional uint32 seq_num_r2c = 8;
|
||||||
|
optional uint32 seq_num_e2e = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsRouterToServer {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_relay = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_e2e = 2;
|
||||||
|
repeated fixed32 ack_relay = 10;
|
||||||
|
repeated fixed32 legacy_ack_e2e = 11;
|
||||||
|
optional uint32 flags = 12;
|
||||||
|
optional uint32 seq_num_r2s = 5;
|
||||||
|
optional uint32 seq_num_e2e = 6;
|
||||||
|
optional string client_identity_string = 15;
|
||||||
|
optional fixed64 legacy_client_steam_id = 7;
|
||||||
|
optional uint32 relay_session_id = 8;
|
||||||
|
optional fixed32 client_connection_id = 9;
|
||||||
|
optional fixed32 server_connection_id = 13;
|
||||||
|
optional fixed64 routing_secret = 14;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsServerToRouter {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_relay = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_e2e = 2;
|
||||||
|
repeated fixed32 ack_relay = 8;
|
||||||
|
repeated fixed32 legacy_ack_e2e = 9;
|
||||||
|
optional uint32 flags = 10;
|
||||||
|
optional uint32 seq_num_s2r = 3;
|
||||||
|
optional uint32 seq_num_e2e = 4;
|
||||||
|
optional uint32 relay_session_id = 6;
|
||||||
|
optional fixed32 client_connection_id = 7;
|
||||||
|
optional fixed32 server_connection_id = 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PSessionRequestBody {
|
||||||
|
optional fixed32 challenge_time = 1;
|
||||||
|
optional fixed64 challenge = 2;
|
||||||
|
optional fixed32 client_connection_id = 3;
|
||||||
|
optional fixed64 legacy_peer_steam_id = 4;
|
||||||
|
optional string peer_identity_string = 11;
|
||||||
|
optional fixed32 peer_connection_id = 5;
|
||||||
|
optional uint32 protocol_version = 8;
|
||||||
|
optional uint32 network_config_version = 9;
|
||||||
|
optional fixed32 unused_public_ip = 10;
|
||||||
|
optional string platform = 12;
|
||||||
|
optional string build = 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PSessionRequest {
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 1;
|
||||||
|
optional bytes body = 2;
|
||||||
|
optional bytes signature = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PSessionEstablished {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional uint32 seconds_until_shutdown = 3;
|
||||||
|
optional bytes relay_routing_token = 4;
|
||||||
|
optional uint32 seq_num_r2c = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsP2PClientToRouter {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
NOT_PRIMARY_SESSION = 8;
|
||||||
|
NOT_PRIMARY_TRANSPORT_E2E = 16;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_relay = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_e2e = 2;
|
||||||
|
optional .CMsgSteamDatagramP2PRoutingSummary p2p_routing_summary = 14;
|
||||||
|
repeated fixed32 ack_relay = 3;
|
||||||
|
repeated fixed32 legacy_ack_e2e = 4;
|
||||||
|
optional uint32 flags = 5;
|
||||||
|
optional bytes forward_target_relay_routing_token = 6;
|
||||||
|
optional uint32 forward_target_revision = 7;
|
||||||
|
optional bytes routes = 8;
|
||||||
|
optional uint32 ack_peer_routes_revision = 9;
|
||||||
|
optional fixed32 connection_id = 10;
|
||||||
|
optional uint32 seq_num_c2r = 11;
|
||||||
|
optional uint32 seq_num_e2e = 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionStatsP2PRouterToClient {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_RELAY = 1;
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
NOT_PRIMARY_TRANSPORT_E2E = 16;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_relay = 1;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality quality_e2e = 2;
|
||||||
|
optional uint32 seconds_until_shutdown = 3;
|
||||||
|
optional fixed32 migrate_request_ip = 4;
|
||||||
|
optional uint32 migrate_request_port = 5;
|
||||||
|
optional uint32 scoring_penalty_relay_cluster = 6;
|
||||||
|
repeated fixed32 ack_relay = 7;
|
||||||
|
repeated fixed32 legacy_ack_e2e = 8;
|
||||||
|
optional uint32 flags = 9;
|
||||||
|
optional uint32 ack_forward_target_revision = 10;
|
||||||
|
optional bytes routes = 11;
|
||||||
|
optional uint32 ack_peer_routes_revision = 12;
|
||||||
|
optional fixed32 connection_id = 13;
|
||||||
|
optional uint32 seq_num_r2c = 14;
|
||||||
|
optional uint32 seq_num_e2e = 15;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PBadRouteRouterToClient {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional bytes failed_relay_routing_token = 2;
|
||||||
|
optional uint32 ack_forward_target_revision = 3;
|
||||||
|
optional fixed64 kludge_pad = 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramP2PRoutes {
|
||||||
|
message RelayCluster {
|
||||||
|
optional fixed32 pop_id = 1;
|
||||||
|
optional uint32 ping_ms = 2;
|
||||||
|
optional uint32 score_penalty = 3;
|
||||||
|
optional bytes session_relay_routing_token = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Route {
|
||||||
|
optional fixed32 my_pop_id = 1;
|
||||||
|
optional fixed32 your_pop_id = 2;
|
||||||
|
optional uint32 legacy_score = 3;
|
||||||
|
optional uint32 interior_score = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
repeated .CMsgSteamDatagramP2PRoutes.RelayCluster relay_clusters = 1;
|
||||||
|
repeated .CMsgSteamDatagramP2PRoutes.Route routes = 2;
|
||||||
|
optional uint32 revision = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSetSecondaryAddressRequest {
|
||||||
|
optional fixed32 client_main_ip = 1;
|
||||||
|
optional fixed32 client_main_port = 2;
|
||||||
|
optional fixed32 client_connection_id = 3;
|
||||||
|
optional string client_identity = 4;
|
||||||
|
optional bool request_send_duplication = 5;
|
||||||
|
optional bytes kludge_pad = 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSetSecondaryAddressResult {
|
||||||
|
optional bool success = 1;
|
||||||
|
optional string message = 2;
|
||||||
|
}
|
||||||
42
protos/steammessages_gamenetworkingui.proto
Normal file
42
protos/steammessages_gamenetworkingui.proto
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
import "steamnetworkingsockets_messages.proto";
|
||||||
|
import "steamdatagram_messages_sdr.proto";
|
||||||
|
|
||||||
|
option optimize_for = SPEED;
|
||||||
|
option cc_generic_services = true;
|
||||||
|
|
||||||
|
message CGameNetworkingUI_GlobalState {
|
||||||
|
}
|
||||||
|
|
||||||
|
message CGameNetworkingUI_ConnectionState {
|
||||||
|
optional string connection_key = 1;
|
||||||
|
optional uint32 appid = 2;
|
||||||
|
optional fixed32 connection_id_local = 3;
|
||||||
|
optional string identity_local = 4;
|
||||||
|
optional string identity_remote = 5;
|
||||||
|
optional uint32 connection_state = 10;
|
||||||
|
optional uint32 start_time = 12;
|
||||||
|
optional uint32 close_time = 13;
|
||||||
|
optional uint32 close_reason = 14;
|
||||||
|
optional string close_message = 15;
|
||||||
|
optional string status_loc_token = 16;
|
||||||
|
optional uint32 transport_kind = 20;
|
||||||
|
optional string sdrpopid_local = 21;
|
||||||
|
optional string sdrpopid_remote = 22;
|
||||||
|
optional string address_remote = 23;
|
||||||
|
optional .CMsgSteamDatagramP2PRoutingSummary p2p_routing = 24;
|
||||||
|
optional uint32 ping_interior = 25;
|
||||||
|
optional uint32 ping_remote_front = 26;
|
||||||
|
optional uint32 ping_default_internet_route = 27;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality e2e_quality_local = 30;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality e2e_quality_remote = 31;
|
||||||
|
optional uint64 e2e_quality_remote_instantaneous_time = 32;
|
||||||
|
optional uint64 e2e_quality_remote_lifetime_time = 33;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality front_quality_local = 40;
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality front_quality_remote = 41;
|
||||||
|
optional uint64 front_quality_remote_instantaneous_time = 42;
|
||||||
|
optional uint64 front_quality_remote_lifetime_time = 43;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CGameNetworkingUI_Message {
|
||||||
|
repeated .CGameNetworkingUI_ConnectionState connection_state = 1;
|
||||||
|
}
|
||||||
204
protos/steamnetworkingsockets_messages.proto
Normal file
204
protos/steamnetworkingsockets_messages.proto
Normal file
|
|
@ -0,0 +1,204 @@
|
||||||
|
import "steamnetworkingsockets_messages_certs.proto";
|
||||||
|
|
||||||
|
option optimize_for = SPEED;
|
||||||
|
option cc_generic_services = false;
|
||||||
|
|
||||||
|
enum ESteamNetworkingSocketsCipher {
|
||||||
|
k_ESteamNetworkingSocketsCipher_INVALID = 0;
|
||||||
|
k_ESteamNetworkingSocketsCipher_NULL = 1;
|
||||||
|
k_ESteamNetworkingSocketsCipher_AES_256_GCM = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSessionCryptInfo {
|
||||||
|
enum EKeyType {
|
||||||
|
INVALID = 0;
|
||||||
|
CURVE25519 = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfo.EKeyType key_type = 1 [default = INVALID];
|
||||||
|
optional bytes key_data = 2;
|
||||||
|
optional fixed64 nonce = 3;
|
||||||
|
optional uint32 protocol_version = 4;
|
||||||
|
repeated .ESteamNetworkingSocketsCipher ciphers = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramSessionCryptInfoSigned {
|
||||||
|
optional bytes info = 1;
|
||||||
|
optional bytes signature = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramDiagnostic {
|
||||||
|
optional uint32 severity = 1;
|
||||||
|
optional string text = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramLinkInstantaneousStats {
|
||||||
|
optional uint32 out_packets_per_sec_x10 = 1;
|
||||||
|
optional uint32 out_bytes_per_sec = 2;
|
||||||
|
optional uint32 in_packets_per_sec_x10 = 3;
|
||||||
|
optional uint32 in_bytes_per_sec = 4;
|
||||||
|
optional uint32 ping_ms = 5;
|
||||||
|
optional uint32 packets_dropped_pct = 6;
|
||||||
|
optional uint32 packets_weird_sequence_pct = 7;
|
||||||
|
optional uint32 peak_jitter_usec = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramLinkLifetimeStats {
|
||||||
|
optional uint32 connected_seconds = 2;
|
||||||
|
optional uint64 packets_sent = 3;
|
||||||
|
optional uint64 kb_sent = 4;
|
||||||
|
optional uint64 packets_recv = 5;
|
||||||
|
optional uint64 kb_recv = 6;
|
||||||
|
optional uint64 packets_recv_sequenced = 7;
|
||||||
|
optional uint64 packets_recv_dropped = 8;
|
||||||
|
optional uint64 packets_recv_out_of_order = 9;
|
||||||
|
optional uint64 packets_recv_duplicate = 10;
|
||||||
|
optional uint64 packets_recv_lurch = 11;
|
||||||
|
repeated uint64 multipath_packets_recv_sequenced = 12;
|
||||||
|
repeated uint64 multipath_packets_recv_later = 13;
|
||||||
|
optional uint32 multipath_send_enabled = 14;
|
||||||
|
optional uint32 quality_histogram_100 = 21;
|
||||||
|
optional uint32 quality_histogram_99 = 22;
|
||||||
|
optional uint32 quality_histogram_97 = 23;
|
||||||
|
optional uint32 quality_histogram_95 = 24;
|
||||||
|
optional uint32 quality_histogram_90 = 25;
|
||||||
|
optional uint32 quality_histogram_75 = 26;
|
||||||
|
optional uint32 quality_histogram_50 = 27;
|
||||||
|
optional uint32 quality_histogram_1 = 28;
|
||||||
|
optional uint32 quality_histogram_dead = 29;
|
||||||
|
optional uint32 quality_ntile_2nd = 30;
|
||||||
|
optional uint32 quality_ntile_5th = 31;
|
||||||
|
optional uint32 quality_ntile_25th = 32;
|
||||||
|
optional uint32 quality_ntile_50th = 33;
|
||||||
|
optional uint32 ping_histogram_25 = 41;
|
||||||
|
optional uint32 ping_histogram_50 = 42;
|
||||||
|
optional uint32 ping_histogram_75 = 43;
|
||||||
|
optional uint32 ping_histogram_100 = 44;
|
||||||
|
optional uint32 ping_histogram_125 = 45;
|
||||||
|
optional uint32 ping_histogram_150 = 46;
|
||||||
|
optional uint32 ping_histogram_200 = 47;
|
||||||
|
optional uint32 ping_histogram_300 = 48;
|
||||||
|
optional uint32 ping_histogram_max = 49;
|
||||||
|
optional uint32 ping_ntile_5th = 50;
|
||||||
|
optional uint32 ping_ntile_50th = 51;
|
||||||
|
optional uint32 ping_ntile_75th = 52;
|
||||||
|
optional uint32 ping_ntile_95th = 53;
|
||||||
|
optional uint32 ping_ntile_98th = 54;
|
||||||
|
optional uint32 jitter_histogram_negligible = 61;
|
||||||
|
optional uint32 jitter_histogram_1 = 62;
|
||||||
|
optional uint32 jitter_histogram_2 = 63;
|
||||||
|
optional uint32 jitter_histogram_5 = 64;
|
||||||
|
optional uint32 jitter_histogram_10 = 65;
|
||||||
|
optional uint32 jitter_histogram_20 = 66;
|
||||||
|
optional uint32 txspeed_max = 67;
|
||||||
|
optional uint32 txspeed_histogram_16 = 68;
|
||||||
|
optional uint32 txspeed_histogram_32 = 69;
|
||||||
|
optional uint32 txspeed_histogram_64 = 70;
|
||||||
|
optional uint32 txspeed_histogram_128 = 71;
|
||||||
|
optional uint32 txspeed_histogram_256 = 72;
|
||||||
|
optional uint32 txspeed_histogram_512 = 73;
|
||||||
|
optional uint32 txspeed_histogram_1024 = 74;
|
||||||
|
optional uint32 txspeed_histogram_max = 75;
|
||||||
|
optional uint32 txspeed_ntile_5th = 76;
|
||||||
|
optional uint32 txspeed_ntile_50th = 77;
|
||||||
|
optional uint32 txspeed_ntile_75th = 78;
|
||||||
|
optional uint32 txspeed_ntile_95th = 79;
|
||||||
|
optional uint32 txspeed_ntile_98th = 80;
|
||||||
|
optional uint32 rxspeed_max = 81;
|
||||||
|
optional uint32 rxspeed_histogram_16 = 82;
|
||||||
|
optional uint32 rxspeed_histogram_32 = 83;
|
||||||
|
optional uint32 rxspeed_histogram_64 = 84;
|
||||||
|
optional uint32 rxspeed_histogram_128 = 85;
|
||||||
|
optional uint32 rxspeed_histogram_256 = 86;
|
||||||
|
optional uint32 rxspeed_histogram_512 = 87;
|
||||||
|
optional uint32 rxspeed_histogram_1024 = 88;
|
||||||
|
optional uint32 rxspeed_histogram_max = 89;
|
||||||
|
optional uint32 rxspeed_ntile_5th = 90;
|
||||||
|
optional uint32 rxspeed_ntile_50th = 91;
|
||||||
|
optional uint32 rxspeed_ntile_75th = 92;
|
||||||
|
optional uint32 rxspeed_ntile_95th = 93;
|
||||||
|
optional uint32 rxspeed_ntile_98th = 94;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramConnectionQuality {
|
||||||
|
optional .CMsgSteamDatagramLinkInstantaneousStats instantaneous = 1;
|
||||||
|
optional .CMsgSteamDatagramLinkLifetimeStats lifetime = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgICERendezvous {
|
||||||
|
message Auth {
|
||||||
|
optional string pwd_frag = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Candidate {
|
||||||
|
optional string candidate = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgICERendezvous.Auth auth = 2;
|
||||||
|
optional .CMsgICERendezvous.Candidate add_candidate = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamNetworkingP2PRendezvous {
|
||||||
|
message ConnectRequest {
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 6;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 7;
|
||||||
|
optional uint32 to_virtual_port = 9;
|
||||||
|
optional uint32 from_virtual_port = 10;
|
||||||
|
optional string from_fakeip = 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ConnectOK {
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 5;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ConnectionClosed {
|
||||||
|
optional string debug = 5;
|
||||||
|
optional uint32 reason_code = 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ReliableMessage {
|
||||||
|
optional .CMsgICERendezvous ice = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ApplicationMessage {
|
||||||
|
optional bytes data = 1;
|
||||||
|
optional uint64 msg_num = 2;
|
||||||
|
optional uint32 flags = 3;
|
||||||
|
optional uint32 lane_idx = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional string from_identity = 8;
|
||||||
|
optional fixed32 from_connection_id = 9;
|
||||||
|
optional string to_identity = 10;
|
||||||
|
optional fixed32 to_connection_id = 1;
|
||||||
|
optional bytes sdr_routes = 2;
|
||||||
|
optional uint32 ack_peer_routes_revision = 3;
|
||||||
|
optional bool ice_enabled = 7;
|
||||||
|
optional bytes hosted_server_ticket = 14;
|
||||||
|
optional .CMsgSteamNetworkingP2PRendezvous.ConnectRequest connect_request = 4;
|
||||||
|
optional .CMsgSteamNetworkingP2PRendezvous.ConnectOK connect_ok = 5;
|
||||||
|
optional .CMsgSteamNetworkingP2PRendezvous.ConnectionClosed connection_closed = 6;
|
||||||
|
optional uint32 ack_reliable_msg = 11;
|
||||||
|
optional uint32 first_reliable_msg = 12;
|
||||||
|
repeated .CMsgSteamNetworkingP2PRendezvous.ReliableMessage reliable_messages = 13;
|
||||||
|
repeated .CMsgSteamNetworkingP2PRendezvous.ApplicationMessage application_messages = 15;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamNetworkingICESessionSummary {
|
||||||
|
optional uint32 failure_reason_code = 7;
|
||||||
|
optional uint32 local_candidate_types = 1;
|
||||||
|
optional uint32 remote_candidate_types = 2;
|
||||||
|
optional uint32 initial_route_kind = 3;
|
||||||
|
optional uint32 initial_ping = 4;
|
||||||
|
optional uint32 initial_score = 6;
|
||||||
|
optional uint32 negotiation_ms = 5;
|
||||||
|
optional uint32 best_route_kind = 16;
|
||||||
|
optional uint32 best_ping = 17;
|
||||||
|
optional uint32 best_score = 18;
|
||||||
|
optional uint32 best_time = 19;
|
||||||
|
optional uint32 selected_seconds = 12;
|
||||||
|
optional uint32 user_settings = 13;
|
||||||
|
optional uint32 ice_enable_var = 14;
|
||||||
|
optional uint32 local_candidate_types_allowed = 15;
|
||||||
|
}
|
||||||
38
protos/steamnetworkingsockets_messages_certs.proto
Normal file
38
protos/steamnetworkingsockets_messages_certs.proto
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
option optimize_for = SPEED;
|
||||||
|
option cc_generic_services = false;
|
||||||
|
|
||||||
|
message CMsgSteamNetworkingIdentityLegacyBinary {
|
||||||
|
optional fixed64 steam_id = 16;
|
||||||
|
optional string xbox_pairwise_id = 17;
|
||||||
|
optional bytes generic_bytes = 2;
|
||||||
|
optional string generic_string = 3;
|
||||||
|
optional bytes ipv6_and_port = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramCertificate {
|
||||||
|
enum EKeyType {
|
||||||
|
INVALID = 0;
|
||||||
|
ED25519 = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramCertificate.EKeyType key_type = 1 [default = INVALID];
|
||||||
|
optional bytes key_data = 2;
|
||||||
|
optional fixed64 legacy_steam_id = 4;
|
||||||
|
optional .CMsgSteamNetworkingIdentityLegacyBinary legacy_identity_binary = 11;
|
||||||
|
optional string identity_string = 12;
|
||||||
|
repeated fixed32 gameserver_datacenter_ids = 5;
|
||||||
|
optional fixed32 time_created = 8;
|
||||||
|
optional fixed32 time_expiry = 9;
|
||||||
|
repeated uint32 app_ids = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramCertificateSigned {
|
||||||
|
optional bytes cert = 4;
|
||||||
|
optional fixed64 ca_key_id = 5;
|
||||||
|
optional bytes ca_signature = 6;
|
||||||
|
optional bytes private_key_data = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamDatagramCertificateRequest {
|
||||||
|
optional .CMsgSteamDatagramCertificate cert = 1;
|
||||||
|
}
|
||||||
75
protos/steamnetworkingsockets_messages_udp.proto
Normal file
75
protos/steamnetworkingsockets_messages_udp.proto
Normal file
|
|
@ -0,0 +1,75 @@
|
||||||
|
import "steamnetworkingsockets_messages_certs.proto";
|
||||||
|
import "steamnetworkingsockets_messages.proto";
|
||||||
|
|
||||||
|
option optimize_for = SPEED;
|
||||||
|
option cc_generic_services = false;
|
||||||
|
|
||||||
|
enum ESteamNetworkingUDPMsgID {
|
||||||
|
k_ESteamNetworkingUDPMsg_ChallengeRequest = 32;
|
||||||
|
k_ESteamNetworkingUDPMsg_ChallengeReply = 33;
|
||||||
|
k_ESteamNetworkingUDPMsg_ConnectRequest = 34;
|
||||||
|
k_ESteamNetworkingUDPMsg_ConnectOK = 35;
|
||||||
|
k_ESteamNetworkingUDPMsg_ConnectionClosed = 36;
|
||||||
|
k_ESteamNetworkingUDPMsg_NoConnection = 37;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ChallengeRequest {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed64 my_timestamp = 3;
|
||||||
|
optional uint32 protocol_version = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ChallengeReply {
|
||||||
|
optional fixed32 connection_id = 1;
|
||||||
|
optional fixed64 challenge = 2;
|
||||||
|
optional fixed64 your_timestamp = 3;
|
||||||
|
optional uint32 protocol_version = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ConnectRequest {
|
||||||
|
optional fixed32 client_connection_id = 1;
|
||||||
|
optional fixed64 challenge = 2;
|
||||||
|
optional fixed64 my_timestamp = 5;
|
||||||
|
optional uint32 ping_est_ms = 6;
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 7;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 4;
|
||||||
|
optional uint32 legacy_protocol_version = 8;
|
||||||
|
optional string identity_string = 10;
|
||||||
|
optional fixed64 legacy_client_steam_id = 3;
|
||||||
|
optional .CMsgSteamNetworkingIdentityLegacyBinary legacy_identity_binary = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ConnectOK {
|
||||||
|
optional fixed32 client_connection_id = 1;
|
||||||
|
optional fixed32 server_connection_id = 5;
|
||||||
|
optional fixed64 your_timestamp = 3;
|
||||||
|
optional uint32 delay_time_usec = 4;
|
||||||
|
optional .CMsgSteamDatagramSessionCryptInfoSigned crypt = 7;
|
||||||
|
optional .CMsgSteamDatagramCertificateSigned cert = 8;
|
||||||
|
optional string identity_string = 11;
|
||||||
|
optional fixed64 legacy_server_steam_id = 2;
|
||||||
|
optional .CMsgSteamNetworkingIdentityLegacyBinary legacy_identity_binary = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_ConnectionClosed {
|
||||||
|
optional fixed32 to_connection_id = 4;
|
||||||
|
optional fixed32 from_connection_id = 5;
|
||||||
|
optional string debug = 2;
|
||||||
|
optional uint32 reason_code = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_NoConnection {
|
||||||
|
optional fixed32 from_connection_id = 2;
|
||||||
|
optional fixed32 to_connection_id = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message CMsgSteamSockets_UDP_Stats {
|
||||||
|
enum Flags {
|
||||||
|
ACK_REQUEST_E2E = 2;
|
||||||
|
ACK_REQUEST_IMMEDIATE = 4;
|
||||||
|
NOT_PRIMARY_TRANSPORT_E2E = 16;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional .CMsgSteamDatagramConnectionQuality stats = 1;
|
||||||
|
optional uint32 flags = 3;
|
||||||
|
}
|
||||||
|
|
@ -171,7 +171,6 @@ enum ETFGCMsg {
|
||||||
k_EMsgGC_ProcessMatchVoteKickResponse = 6582;
|
k_EMsgGC_ProcessMatchVoteKickResponse = 6582;
|
||||||
k_EMsgGCToGC_SendAccountBannedNotifications = 6584;
|
k_EMsgGCToGC_SendAccountBannedNotifications = 6584;
|
||||||
k_EMsgGCToGC_SendNotification = 6585;
|
k_EMsgGCToGC_SendNotification = 6585;
|
||||||
k_EMsgGCParty_MMError = 6586;
|
|
||||||
k_EMsgGCDev_GrantWarKill = 10001;
|
k_EMsgGCDev_GrantWarKill = 10001;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -708,15 +707,6 @@ message CMsgPartyClearPendingPlayer {
|
||||||
optional fixed64 pending_player_id = 2;
|
optional fixed64 pending_player_id = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CMsgPartyMMError {
|
|
||||||
enum Type {
|
|
||||||
QUEUE_KICK_NO_PING = 1;
|
|
||||||
QUEUE_KICK_AUTH = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
optional .CMsgPartyMMError.Type type = 1 [default = QUEUE_KICK_NO_PING];
|
|
||||||
}
|
|
||||||
|
|
||||||
message CMsgPartyClearPendingPlayerResponse {
|
message CMsgPartyClearPendingPlayerResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,15 @@ pub mod econ_gcmessages;
|
||||||
pub mod enums_clientserver;
|
pub mod enums_clientserver;
|
||||||
pub mod gcsdk_gcmessages;
|
pub mod gcsdk_gcmessages;
|
||||||
pub mod gcsystemmsgs;
|
pub mod gcsystemmsgs;
|
||||||
|
pub mod steamdatagram_auth_messages;
|
||||||
|
pub mod steamdatagram_messages;
|
||||||
|
pub mod steamdatagram_messages_auth;
|
||||||
|
pub mod steamdatagram_messages_sdr;
|
||||||
pub mod steammessages;
|
pub mod steammessages;
|
||||||
pub mod steammessages_base;
|
pub mod steammessages_base;
|
||||||
|
pub mod steammessages_gamenetworkingui;
|
||||||
|
pub mod steamnetworkingsockets_messages;
|
||||||
|
pub mod steamnetworkingsockets_messages_certs;
|
||||||
|
pub mod steamnetworkingsockets_messages_udp;
|
||||||
pub mod tf_gcmessages;
|
pub mod tf_gcmessages;
|
||||||
pub mod tf_proto_def_messages;
|
pub mod tf_proto_def_messages;
|
||||||
|
|
|
||||||
1517
src/generated/steamdatagram_auth_messages.rs
Normal file
1517
src/generated/steamdatagram_auth_messages.rs
Normal file
File diff suppressed because it is too large
Load diff
15615
src/generated/steamdatagram_messages.rs
Normal file
15615
src/generated/steamdatagram_messages.rs
Normal file
File diff suppressed because it is too large
Load diff
2168
src/generated/steamdatagram_messages_auth.rs
Normal file
2168
src/generated/steamdatagram_messages_auth.rs
Normal file
File diff suppressed because it is too large
Load diff
13403
src/generated/steamdatagram_messages_sdr.rs
Normal file
13403
src/generated/steamdatagram_messages_sdr.rs
Normal file
File diff suppressed because it is too large
Load diff
1227
src/generated/steammessages_gamenetworkingui.rs
Normal file
1227
src/generated/steammessages_gamenetworkingui.rs
Normal file
File diff suppressed because it is too large
Load diff
5921
src/generated/steamnetworkingsockets_messages.rs
Normal file
5921
src/generated/steamnetworkingsockets_messages.rs
Normal file
File diff suppressed because it is too large
Load diff
1132
src/generated/steamnetworkingsockets_messages_certs.rs
Normal file
1132
src/generated/steamnetworkingsockets_messages_certs.rs
Normal file
File diff suppressed because it is too large
Load diff
1797
src/generated/steamnetworkingsockets_messages_udp.rs
Normal file
1797
src/generated/steamnetworkingsockets_messages_udp.rs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -11566,167 +11566,6 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPartyClearPendingPlaye
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(message:CMsgPartyMMError)
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
pub struct CMsgPartyMMError {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:CMsgPartyMMError.type)
|
|
||||||
pub type_: ::std::option::Option<::steam_vent_proto_common::protobuf::EnumOrUnknown<cmsg_party_mmerror::Type>>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:CMsgPartyMMError.special_fields)
|
|
||||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a CMsgPartyMMError {
|
|
||||||
fn default() -> &'a CMsgPartyMMError {
|
|
||||||
<CMsgPartyMMError as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl CMsgPartyMMError {
|
|
||||||
pub fn new() -> CMsgPartyMMError {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// optional .CMsgPartyMMError.Type type = 1;
|
|
||||||
|
|
||||||
pub fn type_(&self) -> cmsg_party_mmerror::Type {
|
|
||||||
match self.type_ {
|
|
||||||
Some(e) => e.enum_value_or(cmsg_party_mmerror::Type::QUEUE_KICK_NO_PING),
|
|
||||||
None => cmsg_party_mmerror::Type::QUEUE_KICK_NO_PING,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_type_(&mut self) {
|
|
||||||
self.type_ = ::std::option::Option::None;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn has_type(&self) -> bool {
|
|
||||||
self.type_.is_some()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_type(&mut self, v: cmsg_party_mmerror::Type) {
|
|
||||||
self.type_ = ::std::option::Option::Some(::steam_vent_proto_common::protobuf::EnumOrUnknown::new(v));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgPartyMMError {
|
|
||||||
const NAME: &'static str = "CMsgPartyMMError";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
8 => {
|
|
||||||
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if let Some(v) = self.type_ {
|
|
||||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(1, v.value());
|
|
||||||
}
|
|
||||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
|
||||||
if let Some(v) = self.type_ {
|
|
||||||
os.write_enum(1, ::steam_vent_proto_common::protobuf::EnumOrUnknown::value(&v))?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> CMsgPartyMMError {
|
|
||||||
CMsgPartyMMError::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.type_ = ::std::option::Option::None;
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static CMsgPartyMMError {
|
|
||||||
static instance: CMsgPartyMMError = CMsgPartyMMError {
|
|
||||||
type_: ::std::option::Option::None,
|
|
||||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Nested message and enums of message `CMsgPartyMMError`
|
|
||||||
pub mod cmsg_party_mmerror {
|
|
||||||
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
||||||
// @@protoc_insertion_point(enum:CMsgPartyMMError.Type)
|
|
||||||
pub enum Type {
|
|
||||||
// @@protoc_insertion_point(enum_value:CMsgPartyMMError.Type.QUEUE_KICK_NO_PING)
|
|
||||||
QUEUE_KICK_NO_PING = 1,
|
|
||||||
// @@protoc_insertion_point(enum_value:CMsgPartyMMError.Type.QUEUE_KICK_AUTH)
|
|
||||||
QUEUE_KICK_AUTH = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::steam_vent_proto_common::protobuf::Enum for Type {
|
|
||||||
const NAME: &'static str = "Type";
|
|
||||||
|
|
||||||
fn value(&self) -> i32 {
|
|
||||||
*self as i32
|
|
||||||
}
|
|
||||||
|
|
||||||
fn from_i32(value: i32) -> ::std::option::Option<Type> {
|
|
||||||
match value {
|
|
||||||
1 => ::std::option::Option::Some(Type::QUEUE_KICK_NO_PING),
|
|
||||||
2 => ::std::option::Option::Some(Type::QUEUE_KICK_AUTH),
|
|
||||||
_ => ::std::option::Option::None
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn from_str(str: &str) -> ::std::option::Option<Type> {
|
|
||||||
match str {
|
|
||||||
"QUEUE_KICK_NO_PING" => ::std::option::Option::Some(Type::QUEUE_KICK_NO_PING),
|
|
||||||
"QUEUE_KICK_AUTH" => ::std::option::Option::Some(Type::QUEUE_KICK_AUTH),
|
|
||||||
_ => ::std::option::Option::None
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const VALUES: &'static [Type] = &[
|
|
||||||
Type::QUEUE_KICK_NO_PING,
|
|
||||||
Type::QUEUE_KICK_AUTH,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Note, `Default` is implemented although default value is not 0
|
|
||||||
impl ::std::default::Default for Type {
|
|
||||||
fn default() -> Self {
|
|
||||||
Type::QUEUE_KICK_NO_PING
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(message:CMsgPartyClearPendingPlayerResponse)
|
// @@protoc_insertion_point(message:CMsgPartyClearPendingPlayerResponse)
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
#[derive(PartialEq,Clone,Default,Debug)]
|
||||||
pub struct CMsgPartyClearPendingPlayerResponse {
|
pub struct CMsgPartyClearPendingPlayerResponse {
|
||||||
|
|
@ -37173,8 +37012,6 @@ pub enum ETFGCMsg {
|
||||||
k_EMsgGCToGC_SendAccountBannedNotifications = 6584,
|
k_EMsgGCToGC_SendAccountBannedNotifications = 6584,
|
||||||
// @@protoc_insertion_point(enum_value:ETFGCMsg.k_EMsgGCToGC_SendNotification)
|
// @@protoc_insertion_point(enum_value:ETFGCMsg.k_EMsgGCToGC_SendNotification)
|
||||||
k_EMsgGCToGC_SendNotification = 6585,
|
k_EMsgGCToGC_SendNotification = 6585,
|
||||||
// @@protoc_insertion_point(enum_value:ETFGCMsg.k_EMsgGCParty_MMError)
|
|
||||||
k_EMsgGCParty_MMError = 6586,
|
|
||||||
// @@protoc_insertion_point(enum_value:ETFGCMsg.k_EMsgGCDev_GrantWarKill)
|
// @@protoc_insertion_point(enum_value:ETFGCMsg.k_EMsgGCDev_GrantWarKill)
|
||||||
k_EMsgGCDev_GrantWarKill = 10001,
|
k_EMsgGCDev_GrantWarKill = 10001,
|
||||||
}
|
}
|
||||||
|
|
@ -37354,7 +37191,6 @@ impl ::steam_vent_proto_common::protobuf::Enum for ETFGCMsg {
|
||||||
6582 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGC_ProcessMatchVoteKickResponse),
|
6582 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGC_ProcessMatchVoteKickResponse),
|
||||||
6584 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCToGC_SendAccountBannedNotifications),
|
6584 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCToGC_SendAccountBannedNotifications),
|
||||||
6585 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCToGC_SendNotification),
|
6585 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCToGC_SendNotification),
|
||||||
6586 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCParty_MMError),
|
|
||||||
10001 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCDev_GrantWarKill),
|
10001 => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCDev_GrantWarKill),
|
||||||
_ => ::std::option::Option::None
|
_ => ::std::option::Option::None
|
||||||
}
|
}
|
||||||
|
|
@ -37528,7 +37364,6 @@ impl ::steam_vent_proto_common::protobuf::Enum for ETFGCMsg {
|
||||||
"k_EMsgGC_ProcessMatchVoteKickResponse" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGC_ProcessMatchVoteKickResponse),
|
"k_EMsgGC_ProcessMatchVoteKickResponse" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGC_ProcessMatchVoteKickResponse),
|
||||||
"k_EMsgGCToGC_SendAccountBannedNotifications" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCToGC_SendAccountBannedNotifications),
|
"k_EMsgGCToGC_SendAccountBannedNotifications" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCToGC_SendAccountBannedNotifications),
|
||||||
"k_EMsgGCToGC_SendNotification" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCToGC_SendNotification),
|
"k_EMsgGCToGC_SendNotification" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCToGC_SendNotification),
|
||||||
"k_EMsgGCParty_MMError" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCParty_MMError),
|
|
||||||
"k_EMsgGCDev_GrantWarKill" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCDev_GrantWarKill),
|
"k_EMsgGCDev_GrantWarKill" => ::std::option::Option::Some(ETFGCMsg::k_EMsgGCDev_GrantWarKill),
|
||||||
_ => ::std::option::Option::None
|
_ => ::std::option::Option::None
|
||||||
}
|
}
|
||||||
|
|
@ -37701,7 +37536,6 @@ impl ::steam_vent_proto_common::protobuf::Enum for ETFGCMsg {
|
||||||
ETFGCMsg::k_EMsgGC_ProcessMatchVoteKickResponse,
|
ETFGCMsg::k_EMsgGC_ProcessMatchVoteKickResponse,
|
||||||
ETFGCMsg::k_EMsgGCToGC_SendAccountBannedNotifications,
|
ETFGCMsg::k_EMsgGCToGC_SendAccountBannedNotifications,
|
||||||
ETFGCMsg::k_EMsgGCToGC_SendNotification,
|
ETFGCMsg::k_EMsgGCToGC_SendNotification,
|
||||||
ETFGCMsg::k_EMsgGCParty_MMError,
|
|
||||||
ETFGCMsg::k_EMsgGCDev_GrantWarKill,
|
ETFGCMsg::k_EMsgGCDev_GrantWarKill,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
@ -39528,19 +39362,6 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgPartyClearPendingPlayer {
|
||||||
self.compute_size() as usize
|
self.compute_size() as usize
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl ::steam_vent_proto_common::RpcMessage for CMsgPartyMMError {
|
|
||||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
|
||||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
|
||||||
}
|
|
||||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
|
||||||
use ::steam_vent_proto_common::protobuf::Message;
|
|
||||||
self.write_to_writer(writer)
|
|
||||||
}
|
|
||||||
fn encode_size(&self) -> usize {
|
|
||||||
use ::steam_vent_proto_common::protobuf::Message;
|
|
||||||
self.compute_size() as usize
|
|
||||||
}
|
|
||||||
}
|
|
||||||
impl ::steam_vent_proto_common::RpcMessage for CMsgPartyClearPendingPlayerResponse {
|
impl ::steam_vent_proto_common::RpcMessage for CMsgPartyClearPendingPlayerResponse {
|
||||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue