SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
Loading...
Searching...
No Matches
sfs3::event::ExtensionResponse Struct Reference

Dispatched when data from a server-side Extension is received. More...

#include <SFSEvent.h>

Public Attributes

std::string cmd
 The name of the custom command to process.
std::shared_ptr< entities::SFSObjectparams
 The data sent by the Extension.
net::TransportType txType
 The transport used by the Extension: TCP, UDP reliable or UDP unreliable.

Detailed Description

Dispatched when data from a server-side Extension is received.

The server usually sends this data to one or more clients in response to a requests::ExtensionRequest.

See also
requests::ExtensionRequest

Member Data Documentation

◆ cmd

std::string sfs3::event::ExtensionResponse::cmd

The name of the custom command to process.

When the Extension replies to a request from this client, it is common practice to reuse the command name of that request.


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