swiftlys2/docs/api/releases/features/ai/
API Reference › SteamAPI

SteamNetworkingConfigValue_t

Struct
Namespace: SwiftlyS2.Shared.SteamAPI · Assembly: SwiftlyS2.CS2.dll
[Serializable]
public struct SteamNetworkingConfigValue_t

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.

View source

Fields

m_eDataType

Which field below did you fill in?

public ESteamNetworkingConfigDataType m_eDataType

m_eValue

Which option is being set

public ESteamNetworkingConfigValue m_eValue

m_val

Option value

public SteamNetworkingConfigValue_t.OptionValue m_val