NAME
gc_modes
- Initialization mode for the client library
SYNOPSIS
#include <game-carrier/common.h>
enum gc_modes {
GC_MODE_UNINITIALIZED = 0,
GC_MODE_PASSIVE,
GC_MODE_ACTIVE,
GC_MODE_HYBRID,
GC_MODE_GCS,
GC_MODES_COUNT
};
DESCRIPTION
Name | Value | Description |
---|---|---|
GC_MODE_UNINITIALIZED |
0 | For internal usage only. |
GC_MODE_PASSIVE |
1 | A Passive mode. All network operations are performed during gc_clients_service call. All network events are delivered during gc_clients_service call. |
GC_MODE_ACTIVE |
2 | An active mode. All network operations are performed in a worker thread. All network events are called delivered immediately. gc_clients_service is not needed to call. |
GC_MODE_HYBRID |
3 | A hybrid mode. All network operations are performed in a worker thread. All network events are delivered during gc_clients_service call. |
GC_MODE_GCS |
4 | For internal usage only. |
GC_MODES_COUNT |
5 | A number of available modes. |