Rise
The Vieneo Province
Loading...
Searching...
No Matches
SteamNetworkingConfigValue_t Struct Reference

#include <steamnetworkingtypes.h>

Classes

union  [union].m_val
 Option value. More...

Public Member Functions

void SetInt32 (ESteamNetworkingConfigValue eVal, int32_t data)
void SetInt64 (ESteamNetworkingConfigValue eVal, int64_t data)
void SetFloat (ESteamNetworkingConfigValue eVal, float data)
void SetPtr (ESteamNetworkingConfigValue eVal, void *data)
void SetString (ESteamNetworkingConfigValue eVal, const char *data)

Public Attributes

ESteamNetworkingConfigValue m_eValue
 Which option is being set.
ESteamNetworkingConfigDataType m_eDataType
 Which field below did you fill in?
union  m_val

Detailed Description

In a few places we need to set configuration options on listen sockets and connections, and have them take effect before the listen socket or connection really starts doing anything. Creating the object and then setting the options "immediately" after creation doesn't work completely, because network packets could be received between the time the object is created and when the options are applied. To set options at creation time in a reliable way, they must be passed to the creation function. This structure is used to pass those options.

For the meaning of these fields, see ISteamNetworkingUtils::SetConfigValue. Basically when the object is created, we just iterate over the list of options and call ISteamNetworkingUtils::SetConfigValueStruct, where the scope arguments are supplied by the object being created.

Definition at line 1742 of file steamnetworkingtypes.h.

Member Function Documentation

◆ SetFloat()

void SteamNetworkingConfigValue_t::SetFloat ( ESteamNetworkingConfigValue eVal,
float data )
inline

Definition at line 1775 of file steamnetworkingtypes.h.

◆ SetInt32()

void SteamNetworkingConfigValue_t::SetInt32 ( ESteamNetworkingConfigValue eVal,
int32_t data )
inline

Definition at line 1763 of file steamnetworkingtypes.h.

◆ SetInt64()

void SteamNetworkingConfigValue_t::SetInt64 ( ESteamNetworkingConfigValue eVal,
int64_t data )
inline

Definition at line 1769 of file steamnetworkingtypes.h.

◆ SetPtr()

void SteamNetworkingConfigValue_t::SetPtr ( ESteamNetworkingConfigValue eVal,
void * data )
inline

Definition at line 1781 of file steamnetworkingtypes.h.

◆ SetString()

void SteamNetworkingConfigValue_t::SetString ( ESteamNetworkingConfigValue eVal,
const char * data )
inline

Definition at line 1787 of file steamnetworkingtypes.h.

Member Data Documentation

◆ m_eDataType

ESteamNetworkingConfigDataType SteamNetworkingConfigValue_t::m_eDataType

Which field below did you fill in?

Definition at line 1748 of file steamnetworkingtypes.h.

◆ m_eValue

ESteamNetworkingConfigValue SteamNetworkingConfigValue_t::m_eValue

Which option is being set.

Definition at line 1745 of file steamnetworkingtypes.h.

◆ m_val

union SteamNetworkingConfigValue_t::[union].m_val SteamNetworkingConfigValue_t::m_val

The documentation for this struct was generated from the following file: