|
|
@@ -12,7 +12,7 @@ bool IZ_NetClientIsValidReconnectIntervalSeconds(long reconnect_interval_secs) { |
|
|
|
return (3 <= reconnect_interval_secs && reconnect_interval_secs <= 10); |
|
|
|
} |
|
|
|
|
|
|
|
static IZ_ConfigItem net_client_config_items[IZ_PLAYERS + 3]; |
|
|
|
static IZ_ConfigItem net_client_config_items[IZ_PLAYERS + 3 + 1]; |
|
|
|
|
|
|
|
void IZ_NetClientInitializeConfigItems(IZ_ConfigItem config_items[]) { |
|
|
|
config_items[0] = (IZ_ConfigItem) { |
|
|
@@ -146,12 +146,11 @@ void IZ_NetClientConnect(IZ_NetClientState* state, IZ_WSClientInitializeParams p |
|
|
|
} |
|
|
|
|
|
|
|
void IZ_NetClientDisconnect(IZ_NetClientState* state) { |
|
|
|
IZ_LogInfo(IZ_LOG_CATEGORY_GLOBAL, "Shutting down networking..."); |
|
|
|
if (state->status == IZ_NET_CLIENT_STATUS_PRISTINE) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (state->binding.connection) { |
|
|
|
IZ_WSClientVHostData *vhd = (IZ_WSClientVHostData *) lws_protocol_vh_priv_get( |
|
|
|
IZ_WSClientVHostData* vhd = (IZ_WSClientVHostData*) lws_protocol_vh_priv_get( |
|
|
|
lws_get_vhost(state->binding.connection), |
|
|
|
lws_get_protocol(state->binding.connection) |
|
|
|
); |
|
|
|