17namespace Steam::Messaging::Packets {
21namespace Steam::Events {
28 virtual ~Event() =
default;
60 ResultEvent() =
default;
67 const std::string&
what()
const {
return result.message; }
75 using ResultEvent::ResultEvent;
82struct ClientLogonEvent : ResultEvent {
83 using ResultEvent::ResultEvent;
91 ClientLogonEvent(
EventResult r, uint64_t s_id, int32_t c_sid)
98struct MsgNotImplementedEvent :
Event {
108 explicit MsgNotImplementedEvent(
118 explicit DisconnectionEvent(
const std::string& r) :
reason(r) {}
150 std::vector<ProductAppInfo>
apps;
155 explicit ProductInfoResult(std::vector<ProductAppInfo> a,
156 std::vector<ProductPackageInfo> p)
162namespace Steam::Commands {
Definition packetbase.hpp:11
Request an anonymous Steam login.
Definition events.hpp:172
Request termination of the current Steam user session.
Definition events.hpp:175
Base type for commands sent to the Steam CM server.
Definition events.hpp:165
GetProductInfo(uint32_t i, uint64_t s_id, int32_t c_sid, uint64_t t)
Construct a request with an app token.
Definition events.hpp:205
uint32_t id
Target application ID.
Definition events.hpp:186
uint64_t app_token
Optional application access token.
Definition events.hpp:198
uint64_t steamid
SteamID associated with the current session.
Definition events.hpp:189
int32_t client_sessionid
Steam CM session identifier.
Definition events.hpp:192
GetProductInfo(uint32_t i, uint64_t s_id, int32_t c_sid)
Construct a request without an app token.
Definition events.hpp:201
Send a heartbeat to Steam CM servers to keep sessions alive.
Definition events.hpp:178
Emitted when the channel encryption handshake completes.
Definition events.hpp:74
int32_t client_sessionid
Steam CM session identifier.
Definition events.hpp:89
uint64_t steamid
Authenticated SteamID for the session.
Definition events.hpp:86
const std::string & reason
The reason the TCP connection was dropped.
Definition events.hpp:116
Result information returned by operations.
Definition events.hpp:36
bool success
Indicates whether the operation succeeded.
Definition events.hpp:38
std::string message
Optional error or diagnostic message.
Definition events.hpp:41
static EventResult fail(std::string msg)
Construct a failure result.
Definition events.hpp:48
static EventResult ok()
Construct a successful result.
Definition events.hpp:44
Base type for all emitted events.
Definition events.hpp:27
const Steam::Messaging::Packets::IPacketMsg * packet
Raw packet associated with the message.
Definition events.hpp:106
uint32_t emsg
Numeric Steam message identifier.
Definition events.hpp:100
Application information entry.
Definition events.hpp:126
std::string sha
SHA hash representing the appinfo version.
Definition events.hpp:131
uint32_t appid
Application identifier.
Definition events.hpp:128
Steam::Utils::VDF::VDFNode appinfo
Parsed VDF metadata for the application.
Definition events.hpp:134
Package information entry.
Definition events.hpp:138
uint32_t packageid
Package identifier.
Definition events.hpp:140
Steam::Utils::VDF::VDFNode pkginfo
Parsed VDF metadata for the package.
Definition events.hpp:146
std::string sha
SHA hash representing the package version.
Definition events.hpp:143
std::vector< ProductPackageInfo > packages
Returned package metadata.
Definition events.hpp:153
std::vector< ProductAppInfo > apps
Returned application metadata.
Definition events.hpp:150
const std::string & what() const
Retrieve the failure message if present.
Definition events.hpp:67
bool ok() const
Check whether the operation succeeded.
Definition events.hpp:64
EventResult result
Result of the associated operation.
Definition events.hpp:58
Node in a VDF tree.
Definition vdf.hpp:40
Minimal representation and parser for Valve Data Format (VDF).