Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Event_ServerIdentification Struct Reference

Classes

struct  SessionEvent

Public Types

enum  ServerOptions { NoOptions = 0 , SupportsPasswordHash = 1 }

Public Attributes

optional string server_name = 1
optional string server_version = 2
optional uint32 protocol_version = 3
optional ServerOptions server_options = 4 [default = NoOptions]
optional bool supports_challenge_response = 5

Member Enumeration Documentation

◆ ServerOptions

Enumerator
NoOptions 
SupportsPasswordHash 

Member Data Documentation

◆ protocol_version

optional uint32 Event_ServerIdentification::protocol_version = 3

◆ server_name

optional string Event_ServerIdentification::server_name = 1

◆ server_options

optional ServerOptions Event_ServerIdentification::server_options = 4 [default = NoOptions]

◆ server_version

optional string Event_ServerIdentification::server_version = 2

◆ supports_challenge_response

optional bool Event_ServerIdentification::supports_challenge_response = 5

Advertises challenge-response authentication separately from server_options. server_options must stay exactly SupportsPasswordHash on the wire: it is a proto2 enum (closed), so already-released clients compiled without any new enumerator parse an unknown value as NoOptions and fall back to sending the plaintext password. New clients check this field instead.


The documentation for this struct was generated from the following file: