Client 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
| API | Description |
|---|---|
| InvokeVirtualServer | Invoke 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:
| Param | Type | Description |
|---|---|---|
| req | const VirtualServerReq& | The request info of the call. |
| result_callback | PgosDataCallback<VirtualServerResp> | The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD. |
Return: void