![]() |
Rise
The Vieneo Province
|
Go to the source code of this file.
Classes | |
| struct | SteamNetworkingIPAddr |
| struct | SteamNetworkingIPAddr::IPv4MappedAddress |
| RFC4038, section 4.2. More... | |
| struct | SteamNetworkingIdentity |
| struct | SteamNetConnectionInfo_t |
| Describe the state of a connection. More... | |
| struct | SteamNetConnectionRealTimeStatus_t |
| struct | SteamNetConnectionRealTimeLaneStatus_t |
| Quick status of a particular lane. More... | |
| struct | SteamNetworkingMessage_t |
| A message that has been received. More... | |
| struct | SteamNetworkPingLocation_t |
| struct | SteamNetworkingConfigValue_t |
| struct | SteamNetworkingPOPIDRender |
| Utility class for printing a SteamNetworkingPOPID. More... | |
Macros | |
| #define | STEAMNETWORKINGSOCKETS_STEAMAPI |
| #define | STEAMNETWORKINGSOCKETS_INTERFACE extern "C" |
Functions | |
| SteamNetworkingPOPID | CalculateSteamNetworkingPOPIDFromString (const char *pszCode) |
| Convert 3- or 4-character ID to 32-bit int. | |
| template<int N> | |
| void | GetSteamNetworkingLocationPOPStringFromID (SteamNetworkingPOPID id, char(&szCode)[N]) |
| #define STEAMNETWORKINGSOCKETS_INTERFACE extern "C" |
Definition at line 38 of file steamnetworkingtypes.h.
| #define STEAMNETWORKINGSOCKETS_STEAMAPI |
Definition at line 19 of file steamnetworkingtypes.h.
| typedef void(*) FnSteamNetAuthenticationStatusChanged(SteamNetAuthenticationStatus_t *) |
Definition at line 61 of file steamnetworkingtypes.h.
| typedef void(*) FnSteamNetConnectionStatusChanged(SteamNetConnectionStatusChangedCallback_t *) |
Definition at line 60 of file steamnetworkingtypes.h.
| typedef void(*) FnSteamNetworkingFakeIPResult(SteamNetworkingFakeIPResult_t *) |
Definition at line 65 of file steamnetworkingtypes.h.
| typedef void(*) FnSteamNetworkingMessagesSessionFailed(SteamNetworkingMessagesSessionFailed_t *) |
Definition at line 64 of file steamnetworkingtypes.h.
| typedef void(*) FnSteamNetworkingMessagesSessionRequest(SteamNetworkingMessagesSessionRequest_t *) |
Definition at line 63 of file steamnetworkingtypes.h.
| typedef void(*) FnSteamRelayNetworkStatusChanged(SteamRelayNetworkStatus_t *) |
Definition at line 62 of file steamnetworkingtypes.h.
| typedef void(*) FSteamNetworkingSocketsDebugOutput(ESteamNetworkingSocketsDebugOutputType nType, const char *pszMsg) |
Setup callback for debug output, and the desired verbosity you want.
Definition at line 1829 of file steamnetworkingtypes.h.
| typedef uint32 HSteamListenSocket |
Handle used to identify a "listen socket". Unlike traditional Berkeley sockets, a listen socket and a connection are two different abstractions.
Definition at line 74 of file steamnetworkingtypes.h.
| typedef uint32 HSteamNetConnection |
Handle used to identify a connection to a remote host.
Definition at line 68 of file steamnetworkingtypes.h.
| typedef uint32 HSteamNetPollGroup |
Handle used to identify a poll group, used to query many connections at once efficiently.
Definition at line 79 of file steamnetworkingtypes.h.
Definition at line 1896 of file steamnetworkingtypes.h.
Definition at line 1897 of file steamnetworkingtypes.h.
| typedef char SteamNetworkingErrMsg[k_cchMaxSteamNetworkingErrMsg] |
Used to return English-language diagnostic error messages to caller. (For debugging or spewing to a console, etc. Not intended for UI.)
Definition at line 87 of file steamnetworkingtypes.h.
| typedef int64 SteamNetworkingMicroseconds |
A local timestamp. You can subtract two timestamps to get the number of elapsed microseconds. This is guaranteed to increase over time during the lifetime of a process, but not globally across runs. You don't need to worry about the value wrapping around. Note that the underlying clock might not actually have microsecond resolution.
Definition at line 98 of file steamnetworkingtypes.h.
| typedef uint32 SteamNetworkingPOPID |
Identifier used for a network location point of presence. (E.g. a Valve data center.) Typically you won't need to directly manipulate these.
Definition at line 91 of file steamnetworkingtypes.h.
Enumerate various causes of connection termination. These are designed to work similar to HTTP error codes: the numeric range gives you a rough classification as to the source of the problem.
Definition at line 457 of file steamnetworkingtypes.h.
Describe the status of a particular network resource.
Definition at line 101 of file steamnetworkingtypes.h.
Definition at line 1125 of file steamnetworkingtypes.h.
Configuration values can be applied to different types of objects.
Definition at line 1097 of file steamnetworkingtypes.h.
Configuration options.
| Enumerator | |
|---|---|
| k_ESteamNetworkingConfig_Invalid | |
| k_ESteamNetworkingConfig_TimeoutInitial | [connection int32] Timeout value (in ms) to use when first connecting |
| k_ESteamNetworkingConfig_TimeoutConnected | [connection int32] Timeout value (in ms) to use after connection is established |
| k_ESteamNetworkingConfig_SendBufferSize | [connection int32] Upper limit of buffered pending bytes to be sent, if this is reached SendMessage will return k_EResultLimitExceeded Default is 512k (524288 bytes) |
| k_ESteamNetworkingConfig_RecvBufferSize | [connection int32] Upper limit on total size (in bytes) of received messages that will be buffered waiting to be processed by the application. If this limit is exceeded, packets will be dropped. This is to protect us from a malicious peer flooding us with messages faster than we can process them. This must be bigger than k_ESteamNetworkingConfig_RecvMaxMessageSize |
| k_ESteamNetworkingConfig_RecvBufferMessages | [connection int32] Upper limit on the number of received messages that will that will be buffered waiting to be processed by the application. If this limit is exceeded, packets will be dropped. This is to protect us from a malicious peer flooding us with messages faster than we can pull them off the wire. |
| k_ESteamNetworkingConfig_RecvMaxMessageSize | [connection int32] Maximum message size that we are willing to receive. if a client attempts to send us a message larger than this, the connection will be immediately closed. Default is 512k (524288 bytes). Note that the peer needs to be able to send a message this big. (See k_cbMaxSteamNetworkingSocketsMessageSizeSend.) |
| k_ESteamNetworkingConfig_RecvMaxSegmentsPerPacket | [connection int32] Max number of message segments that can be received in a single UDP packet. While decoding a packet, if the number of segments exceeds this, we will abort further packet processing. The default is effectively unlimited. If you know that you very rarely send small packets, you can protect yourself from malicious senders by lowering this number. In particular, if you are NOT using the reliability layer and are only using SteamNetworkingSockets for datagram transport, setting this to a very low number may be beneficial. (We recommend a value of 2.) Make sure your sender disables Nagle! |
| k_ESteamNetworkingConfig_ConnectionUserData | [connection int64] Get/set userdata as a configuration option. The default value is -1. You may want to set the user data as a config value, instead of using ISteamNetworkingSockets::SetConnectionUserData in two specific instances:
Using the userdata field in callback structs is not advised because of tricky race conditions. Instead, you might try one of these methods:
|
| k_ESteamNetworkingConfig_SendRateMin | [connection int32] Minimum/maximum send rate clamp, in bytes/sec. At the time of this writing these two options should always be set to the same value, to manually configure a specific send rate. The default value is 256K. Eventually we hope to have the library estimate the bandwidth of the channel and set the send rate to that estimated bandwidth, and these values will only set limits on that send rate. |
| k_ESteamNetworkingConfig_SendRateMax | |
| k_ESteamNetworkingConfig_NagleTime | [connection int32] Nagle time, in microseconds. When SendMessage is called, if the outgoing message is less than the size of the MTU, it will be queued for a delay equal to the Nagle timer value. This is to ensure that if the application sends several small messages rapidly, they are coalesced into a single packet. See historical RFC 896. Value is in microseconds. Default is 5000us (5ms). |
| k_ESteamNetworkingConfig_IP_AllowWithoutAuth | [connection int32] Don't automatically fail IP connections that don't have strong auth. On clients, this means we will attempt the connection even if we don't know our identity or can't get a cert. On the server, it means that we won't automatically reject a connection due to a failure to authenticate. (You can examine the incoming connection and decide whether to accept it.) 0: Don't attempt or accept unauthorized connections 1: Attempt authorization when connecting, and allow unauthorized peers, but emit warnings 2: don't attempt authentication, or complain if peer is unauthenticated This is a dev configuration value, and you should not let users modify it in production. |
| k_ESteamNetworkingConfig_IPLocalHost_AllowWithoutAuth | [connection int32] The same as IP_AllowWithoutAuth, but will only apply for connections to/from localhost addresses. Whichever value is larger (more permissive) will be used. |
| k_ESteamNetworkingConfig_MTU_PacketSize | [connection int32] Do not send UDP packets with a payload of larger than N bytes. If you set this, k_ESteamNetworkingConfig_MTU_DataSize is automatically adjusted |
| k_ESteamNetworkingConfig_MTU_DataSize | [connection int32] (read only) Maximum message size you can send that will not fragment, based on k_ESteamNetworkingConfig_MTU_PacketSize |
| k_ESteamNetworkingConfig_Unencrypted | [connection int32] Allow unencrypted (and unauthenticated) communication. 0: Not allowed (the default) 1: Allowed, but prefer encrypted 2: Allowed, and preferred 3: Required. (Fail the connection if the peer requires encryption.) This is a dev configuration value, since its purpose is to disable encryption. You should not let users modify it in production. (But note that it requires the peer to also modify their value in order for encryption to be disabled.) |
| k_ESteamNetworkingConfig_SymmetricConnect | [connection int32] Set this to 1 on outbound connections and listen sockets, to enable "symmetric connect mode", which is useful in the following common peer-to-peer use case:
This use case is both common, and involves subtle race conditions and tricky pitfalls, which is why the API has support for dealing with it. If an incoming connection arrives on a listen socket or via custom signaling, and the application has not attempted to make a matching outbound connection in symmetric mode, then the incoming connection can be accepted as usual. A "matching" connection means that the relevant endpoint information matches. (At the time this comment is being written, this is only supported for P2P connections, which means that the peer identities must match, and the virtual port must match. At a later time, symmetric mode may be supported for other connection types.) If connections are initiated by both peers simultaneously, race conditions can arise, but fortunately, most of them are handled internally and do not require any special awareness from the application. However, there is one important case that application code must be aware of: If application code attempts an outbound connection using a ConnectXxx function in symmetric mode, and a matching incoming connection is already waiting on a listen socket, then instead of forming a new connection, the ConnectXxx call will accept the existing incoming connection, and return a connection handle to this accepted connection. IMPORTANT: in this case, a SteamNetConnectionStatusChangedCallback_t has probably already been posted to the queue for the incoming connection! (Once callbacks are posted to the queue, they are not modified.) It doesn't matter if the callback has not been consumed by the app. Thus, application code that makes use of symmetric connections must be aware that, when processing a SteamNetConnectionStatusChangedCallback_t for an incoming connection, the m_hConn may refer to a new connection that the app has has not seen before (the usual case), but it may also refer to a connection that has already been accepted implicitly through a call to Connect()! In this case, AcceptConnection() will return k_EResultDuplicateRequest. Only one symmetric connection to a given peer (on a given virtual port) may exist at any given time. If client code attempts to create a connection, and a (live) connection already exists on the local host, then either the existing connection will be accepted as described above, or the attempt to create a new connection will fail. Furthermore, linger mode functionality is not supported on symmetric connections. A more complicated race condition can arise if both peers initiate a connection at roughly the same time. In this situation, each peer will receive an incoming connection from the other peer, when the application code has already initiated an outgoing connection to that peer. The peers must resolve this conflict and decide who is going to act as the "server" and who will act as the "client". Typically the application does not need to be aware of this case as it is handled internally. On both sides, the will observe their outbound connection being "accepted", although one of them one have been converted internally to act as the "server". In general, symmetric mode should be all-or-nothing: do not mix symmetric connections with a non-symmetric connection that it might possible "match" with. If you use symmetric mode on any connections, then both peers should use it on all connections, and the corresponding listen socket, if any. The behaviour when symmetric and ordinary connections are mixed is not defined by this API, and you should not rely on it. (This advice only applies when connections might possibly "match". For example, it's OK to use all symmetric mode connections on one virtual port, and all ordinary, non-symmetric connections on a different virtual port, as there is no potential for ambiguity.) When using the feature, you should set it in the following situations on applicable objects:
Setting the flag on listen socket and accepted connections will enable the API to automatically deal with duplicate incoming connections, even if the local host has not made any outbound requests. (In general, such duplicate requests from a peer are ignored internally and will not be visible to the application code. The previous connection must be closed or resolved first.) |
| k_ESteamNetworkingConfig_LocalVirtualPort | [connection int32] For connection types that use "virtual ports", this can be used to assign a local virtual port. For incoming connections, this will always be the virtual port of the listen socket (or the port requested by the remote host if custom signaling is used and the connection is accepted), and cannot be changed. For connections initiated locally, the local virtual port will default to the same as the requested remote virtual port, if you do not specify a different option when creating the connection. The local port is only relevant for symmetric connections, when determining if two connections "match." In this case, if you need the local and remote port to differ, you can set this value. You can also read back this value on listen sockets. This value should not be read or written in any other context. |
| k_ESteamNetworkingConfig_DualWifi_Enable | [connection int32] Enable Dual wifi band support for this connection 0 = no, 1 = yes, 2 = simulate it for debugging, even if dual wifi not available |
| k_ESteamNetworkingConfig_EnableDiagnosticsUI | [connection int32] True to enable diagnostics reporting through generic platform UI. (Only available on Steam.) |
| k_ESteamNetworkingConfig_SendTimeSincePreviousPacket | [connection int32] Send of time-since-previous-packet values in each UDP packet. This add a small amount of packet overhead but allows for detailed jitter measurements to be made by the receiver.
|
| k_ESteamNetworkingConfig_FakePacketLoss_Send | [global float, 0–100] Randomly discard N pct of packets instead of sending/recv This is a global option only, since it is applied at a low level where we don't have much context |
| k_ESteamNetworkingConfig_FakePacketLoss_Recv | |
| k_ESteamNetworkingConfig_FakePacketLag_Send | [global int32]. Delay all outbound/inbound packets by N ms |
| k_ESteamNetworkingConfig_FakePacketLag_Recv | |
| k_ESteamNetworkingConfig_FakePacketJitter_Send_Avg | Simulated jitter/clumping. For each packet, a jitter value is determined (which may be zero). This amount is added as extra delay to the packet. When a subsequent packet is queued, it receives its own random jitter amount from the current time. if this would result in the packets being delivered out of order, the later packet queue time is adjusted to happen after the first packet. Thus simulating jitter by itself will not reorder packets, but it can "clump" them. - Avg: A random jitter time is generated using an exponential distribution using this value as the mean (ms). The default is zero, which disables random jitter.
All values are [global float] Fake jitter is simulated after fake lag, but before reordering. |
| k_ESteamNetworkingConfig_FakePacketJitter_Send_Max | |
| k_ESteamNetworkingConfig_FakePacketJitter_Send_Pct | |
| k_ESteamNetworkingConfig_FakePacketJitter_Recv_Avg | |
| k_ESteamNetworkingConfig_FakePacketJitter_Recv_Max | |
| k_ESteamNetworkingConfig_FakePacketJitter_Recv_Pct | |
| k_ESteamNetworkingConfig_FakePacketReorder_Send | [global float] 0-100 Percentage of packets we will add additional delay to. If other packet(s) are sent/received within this delay window (that doesn't also randomly receive the same extra delay), then the packets become reordered. This mechanism is primarily intended to generate out-of-order packets. To simulate random jitter, use the FakePacketJitter. Fake packet reordering is applied after fake lag and jitter |
| k_ESteamNetworkingConfig_FakePacketReorder_Recv | |
| k_ESteamNetworkingConfig_FakePacketReorder_Time | [global int32] Extra delay, in ms, to apply to reordered packets. The same time value is used for sending and receiving. |
| k_ESteamNetworkingConfig_FakePacketDup_Send | [global float 0–100] Globally duplicate some percentage of packets. |
| k_ESteamNetworkingConfig_FakePacketDup_Recv | |
| k_ESteamNetworkingConfig_FakePacketDup_TimeMax | [global int32] Amount of delay, in ms, to delay duplicated packets. (We chose a random delay between 0 and this value) |
| k_ESteamNetworkingConfig_PacketTraceMaxBytes | [global int32] Trace every UDP packet, similar to Wireshark or tcpdump. Value is max number of bytes to dump. -1 disables tracing. |
| k_ESteamNetworkingConfig_FakeRateLimit_Send_Rate | |
| k_ESteamNetworkingConfig_FakeRateLimit_Send_Burst | |
| k_ESteamNetworkingConfig_FakeRateLimit_Recv_Rate | |
| k_ESteamNetworkingConfig_FakeRateLimit_Recv_Burst | |
| k_ESteamNetworkingConfig_OutOfOrderCorrectionWindowMicroseconds | |
| k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged | [connection FnSteamNetConnectionStatusChanged] Callback that will be invoked when the state of a connection changes. IMPORTANT: callbacks are dispatched to the handler that is in effect at the time the event occurs, which might be in another thread. For example, immediately after creating a listen socket, you may receive an incoming connection. And then immediately after this, the remote host may close the connection. All of this could happen before the function to create the listen socket has returned. For this reason, callbacks usually must be in effect at the time of object creation. This means you should set them when you are creating the listen socket or connection, or have them in effect so they will be inherited at the time of object creation. For example: exterm void MyStatusChangedFunc( SteamNetConnectionStatusChangedCallback_t *info ); SteamNetworkingConfigValue_t opt; opt.SetPtr( k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged, MyStatusChangedFunc ); SteamNetworkingIPAddr localAddress; localAddress.Clear(); HSteamListenSocket hListenSock = SteamNetworkingSockets()->CreateListenSocketIP( localAddress, 1, &opt ); When accepting an incoming connection, there is no atomic way to switch the callback. However, if the connection is DOA, AcceptConnection() will fail, and you can fetch the state of the connection at that time. If all connections and listen sockets can use the same callback, the simplest method is to set it globally before you create any listen sockets or connections. |
| k_ESteamNetworkingConfig_Callback_AuthStatusChanged | [global FnSteamNetAuthenticationStatusChanged] Callback that will be invoked when our auth state changes. If you use this, install the callback before creating any connections or listen sockets, and don't change it. See: ISteamNetworkingUtils::SetGlobalCallback_SteamNetAuthenticationStatusChanged |
| k_ESteamNetworkingConfig_Callback_RelayNetworkStatusChanged | [global FnSteamRelayNetworkStatusChanged] Callback that will be invoked when our auth state changes. If you use this, install the callback before creating any connections or listen sockets, and don't change it. See: ISteamNetworkingUtils::SetGlobalCallback_SteamRelayNetworkStatusChanged |
| k_ESteamNetworkingConfig_Callback_MessagesSessionRequest | [global FnSteamNetworkingMessagesSessionRequest] Callback that will be invoked when a peer wants to initiate a SteamNetworkingMessagesSessionRequest. See: ISteamNetworkingUtils::SetGlobalCallback_MessagesSessionRequest |
| k_ESteamNetworkingConfig_Callback_MessagesSessionFailed | [global FnSteamNetworkingMessagesSessionFailed] Callback that will be invoked when a session you have initiated, or accepted either fails to connect, or loses connection in some unexpected way. See: ISteamNetworkingUtils::SetGlobalCallback_MessagesSessionFailed |
| k_ESteamNetworkingConfig_Callback_CreateConnectionSignaling | [global FnSteamNetworkingSocketsCreateConnectionSignaling] Callback that will be invoked when we need to create a signaling object for a connection initiated locally. See: ISteamNetworkingSockets::ConnectP2P, ISteamNetworkingMessages. |
| k_ESteamNetworkingConfig_Callback_FakeIPResult | [global FnSteamNetworkingFakeIPResult] Callback that's invoked when a FakeIP allocation finishes. See: ISteamNetworkingSockets::BeginAsyncRequestFakeIP, ISteamNetworkingUtils::SetGlobalCallback_FakeIPResult |
| k_ESteamNetworkingConfig_P2P_STUN_ServerList | [connection string] Comma-separated list of STUN servers that can be used for NAT piercing. If you set this to an empty string, NAT piercing will not be attempted. Also if "public" candidates are not allowed for P2P_Transport_ICE_Enable, then this is ignored. |
| k_ESteamNetworkingConfig_P2P_Transport_ICE_Enable | [connection int32] What types of ICE candidates to share with the peer. See k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_xxx values |
| k_ESteamNetworkingConfig_P2P_Transport_ICE_Penalty | [connection int32] When selecting P2P transport, add various penalties to the scores for selected transports. (Route selection scores are on a scale of milliseconds. The score begins with the route ping time and is then adjusted.) |
| k_ESteamNetworkingConfig_P2P_Transport_SDR_Penalty | |
| k_ESteamNetworkingConfig_P2P_TURN_ServerList | |
| k_ESteamNetworkingConfig_P2P_TURN_UserList | |
| k_ESteamNetworkingConfig_P2P_TURN_PassList | |
| k_ESteamNetworkingConfig_P2P_Transport_ICE_Implementation | |
| k_ESteamNetworkingConfig_SDRClient_ConsecutitivePingTimeoutsFailInitial | [global int32] If the first N pings to a port all fail, mark that port as unavailable for a while, and try a different one. Some ISPs and routers may drop the first packet, so setting this to 1 may greatly disrupt communications. |
| k_ESteamNetworkingConfig_SDRClient_ConsecutitivePingTimeoutsFail | [global int32] If N consecutive pings to a port fail, after having received successful communication, mark that port as unavailable for a while, and try a different one. |
| k_ESteamNetworkingConfig_SDRClient_MinPingsBeforePingAccurate | [global int32] Minimum number of lifetime pings we need to send, before we think our estimate is solid. The first ping to each cluster is very often delayed because of NAT, routers not having the best route, etc. Until we've sent a sufficient number of pings, our estimate is often inaccurate. Keep pinging until we get this many pings. |
| k_ESteamNetworkingConfig_SDRClient_SingleSocket | [global int32] Set all steam datagram traffic to originate from the same local port. By default, we open up a new UDP socket (on a different local port) for each relay. This is slightly less optimal, but it works around some routers that don't implement NAT properly. If you have intermittent problems talking to relays that might be NAT related, try toggling this flag |
| k_ESteamNetworkingConfig_SDRClient_ForceRelayCluster | [global string] Code of relay cluster to force use. If not empty, we will only use relays in that cluster. E.g. 'iad' |
| k_ESteamNetworkingConfig_SDRClient_DevTicket | [connection string] For development, a base-64 encoded ticket generated using the cert tool. This can be used to connect to a gameserver via SDR without a ticket generated using the game coordinator. (You will still need a key that is trusted for your app, however.) This can also be passed using the SDR_DEVTICKET environment variable |
| k_ESteamNetworkingConfig_SDRClient_ForceProxyAddr | [global string] For debugging. Override list of relays from the config with this set (maybe just one). Comma-separated list. |
| k_ESteamNetworkingConfig_SDRClient_FakeClusterPing | [global string] For debugging. Force ping times to clusters to be the specified values. A comma separated list of <cluster>=<ms> values. E.g. "sto=32,iad=100" This is a dev configuration value, you probably should not let users modify it in production. |
| k_ESteamNetworkingConfig_SDRClient_LimitPingProbesToNearestN | [global int32] When probing the SteamDatagram network, we limit exploration to the closest N POPs, based on our current best approximated ping to that POP. |
| k_ESteamNetworkingConfig_LogLevel_AckRTT | |
| k_ESteamNetworkingConfig_LogLevel_PacketDecode | |
| k_ESteamNetworkingConfig_LogLevel_Message | |
| k_ESteamNetworkingConfig_LogLevel_PacketGaps | |
| k_ESteamNetworkingConfig_LogLevel_P2PRendezvous | |
| k_ESteamNetworkingConfig_LogLevel_SDRRelayPings | |
| k_ESteamNetworkingConfig_ECN | |
| k_ESteamNetworkingConfig_SDRClient_EnableTOSProbes | |
| k_ESteamNetworkingConfig_DELETED_EnumerateDevVars | |
| k_ESteamNetworkingConfigValue__Force32Bit | |
Definition at line 1137 of file steamnetworkingtypes.h.
High level connection status.
Definition at line 350 of file steamnetworkingtypes.h.
"Fake IPs" are assigned to hosts, to make it easier to interface with older code that assumed all hosts will have an IPv4 address
Definition at line 183 of file steamnetworkingtypes.h.
Return value of ISteamNetworkintgUtils::GetConfigValue.
Definition at line 1796 of file steamnetworkingtypes.h.
Different methods of describing the identity of a network host.
Definition at line 132 of file steamnetworkingtypes.h.
Detail level for diagnostic output callback. See ISteamNetworkingUtils::SetDebugOutputFunction
Definition at line 1813 of file steamnetworkingtypes.h.
|
inline |
Convert 3- or 4-character ID to 32-bit int.
Definition at line 1836 of file steamnetworkingtypes.h.
|
inline |
Unpack integer to string representation, including terminating '\0'
See also SteamNetworkingPOPIDRender
Definition at line 1864 of file steamnetworkingtypes.h.
| const int k_cbMaxSteamNetworkingSocketsMessageSizeSend = 512 * 1024 |
Max size of a single message that we can SEND. Note: We might be wiling to receive larger messages, and our peer might, too.
Definition at line 841 of file steamnetworkingtypes.h.
| const int k_cchMaxSteamNetworkingErrMsg = 1024 |
Max length of diagnostic error message.
Definition at line 83 of file steamnetworkingtypes.h.
| const int k_cchMaxSteamNetworkingPingLocationString = 1024 |
Max possible length of a ping location, in string format. This is an extremely conservative worst case value which leaves room for future syntax enhancements. Most strings in practice are a lot shorter. If you are storing many of these, you will very likely benefit from using dynamic memory.
Definition at line 1086 of file steamnetworkingtypes.h.
| const int k_cchSteamNetworkingMaxConnectionAppName = 32 |
Max length of the app's part of the description.
Definition at line 663 of file steamnetworkingtypes.h.
| const int k_cchSteamNetworkingMaxConnectionCloseReason = 128 |
Max length, in bytes (including null terminator) of the reason string when a connection is closed.
Definition at line 656 of file steamnetworkingtypes.h.
| const int k_cchSteamNetworkingMaxConnectionDescription = 128 |
Max length, in bytes (include null terminator) of debug description of a connection.
Definition at line 660 of file steamnetworkingtypes.h.
| const HSteamListenSocket k_HSteamListenSocket_Invalid = 0 |
Definition at line 75 of file steamnetworkingtypes.h.
| const HSteamNetConnection k_HSteamNetConnection_Invalid = 0 |
Definition at line 69 of file steamnetworkingtypes.h.
| const HSteamNetPollGroup k_HSteamNetPollGroup_Invalid = 0 |
Definition at line 80 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkConnectionInfoFlags_DualWifi = 32 |
Definition at line 670 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkConnectionInfoFlags_Fast = 8 |
Definition at line 668 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkConnectionInfoFlags_LoopbackBuffers = 4 |
Definition at line 667 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkConnectionInfoFlags_Relayed = 16 |
Definition at line 669 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkConnectionInfoFlags_Unauthenticated = 1 |
Definition at line 665 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkConnectionInfoFlags_Unencrypted = 2 |
Definition at line 666 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_All = 0x7fffffff |
Definition at line 1729 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Default = -1 |
Definition at line 1724 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Disable = 0 |
Definition at line 1725 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Private = 2 |
Definition at line 1727 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Public = 4 |
Definition at line 1728 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Relay = 1 |
Definition at line 1726 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingPing_Failed = -1 |
Special values that are returned by some functions that return a ping.
Definition at line 1089 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingPing_Unknown = -2 |
Definition at line 1090 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_AutoRestartBrokenSession = 32 |
Definition at line 1057 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_NoDelay = 4 |
Definition at line 992 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_NoNagle = 1 |
Definition at line 980 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_Reliable = 8 |
Definition at line 1016 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_ReliableNoNagle = k_nSteamNetworkingSend_Reliable|k_nSteamNetworkingSend_NoNagle |
Definition at line 1021 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_Unreliable = 0 |
Definition at line 963 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_UnreliableNoDelay = k_nSteamNetworkingSend_Unreliable|k_nSteamNetworkingSend_NoDelay|k_nSteamNetworkingSend_NoNagle |
Definition at line 1005 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_UnreliableNoNagle = k_nSteamNetworkingSend_Unreliable|k_nSteamNetworkingSend_NoNagle |
Definition at line 987 of file steamnetworkingtypes.h.
| const int k_nSteamNetworkingSend_UseCurrentThread = 16 |
Definition at line 1036 of file steamnetworkingtypes.h.
| const SteamNetworkingPOPID k_SteamDatagramPOPID_dev = ( (uint32)'d' << 16U ) | ( (uint32)'e' << 8U ) | (uint32)'v' |
The POPID "dev" is used in non-production environments for testing.
Definition at line 1875 of file steamnetworkingtypes.h.