Initialization & Finalization
This section describes how to initialize the Game Carrier Client library.
The gc_clients_init
and gc_clients_cleanup
functions are used for initializing and cleaning up the library, respectively. The main parameter for client library initialization is the mode
, which is passed to gc_clients_init
. There are three different modes: Active, Passive, and Hybrid, and the library’s behavior significantly depends on the mode chosen. To learn more about these modes, refer to the gc_clients_init
function.
Before initialization, you can use the gc_clients_setopt
function to set up some global parameters that may affect the library initialization process.
In passive and hybrid modes, the gc_clients_service
function can be called periodically to process networking operations and deliver events.
Lastly, the gc_clients_stop_all
function is used to stop all established connections.