Skip to main content

Server Extension API Reference

Extension will empower the game online service and make it more flexible. You can handle any event in your way, and make your own service which can interact with PGOS services and your own client and dedicated server.

API List

APIDescription
InvokeVirtualServerInvoke the specified virtual server.

API Details

InvokeVirtualServer

Invoke the specified virtual server.

/**
* Invoke the specified virtual server.
*
* @param req The request info of the call.
* @param result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void InvokeVirtualServer(
const VirtualServerReq& req,
PgosDataCallback<VirtualServerResp> result_callback);

Parameters:

ParamTypeDescription
reqconst VirtualServerReq&The request info of the call.
result_callbackPgosDataCallback<VirtualServerResp>The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.

Return: void