![]() |
Rise
The Vieneo Province
|
#include <steamnetworkingtypes.h>
Classes | |
| union | [union].__unnamed0__ |
Public Types | |
| enum | { k_cchMaxString = 128 , k_cchMaxGenericString = 32 , k_cchMaxXboxPairwiseID = 33 , k_cbMaxGenericBytes = 32 } |
Public Member Functions | |
| void | Clear () |
| bool | IsInvalid () const |
| void | SetSteamID (CSteamID steamID) |
| CSteamID | GetSteamID () const |
| void | SetSteamID64 (uint64 steamID) |
| uint64 | GetSteamID64 () const |
| bool | SetXboxPairwiseID (const char *pszString) |
| const char * | GetXboxPairwiseID () const |
| void | SetPSNID (uint64 id) |
| uint64 | GetPSNID () const |
| void | SetIPAddr (const SteamNetworkingIPAddr &addr) |
| const SteamNetworkingIPAddr * | GetIPAddr () const |
| void | SetIPv4Addr (uint32 nIPv4, uint16 nPort) |
| uint32 | GetIPv4 () const |
| ESteamNetworkingFakeIPType | GetFakeIPType () const |
| bool | IsFakeIP () const |
| void | SetLocalHost () |
| bool | IsLocalHost () const |
| bool | SetGenericString (const char *pszString) |
| const char * | GetGenericString () const |
| bool | SetGenericBytes (const void *data, size_t cbLen) |
| const uint8 * | GetGenericBytes (int &cbLen) const |
| bool | operator== (const SteamNetworkingIdentity &x) const |
| See if two identities are identical. | |
| void | ToString (char *buf, size_t cbBuf) const |
| bool | ParseString (const char *pszStr) |
Public Attributes | |
| ESteamNetworkingIdentityType | m_eType |
| Type of identity. | |
| int | m_cbSize |
| union | |
An abstract way to represent the identity of a network host. All identities can be represented as simple string. Furthermore, this string representation is actually used on the wire in several places, even though it is less efficient, in order to facilitate forward compatibility. (Old client code can handle an identity type that it doesn't understand.)
Definition at line 257 of file steamnetworkingtypes.h.
| anonymous enum |
| Enumerator | |
|---|---|
| k_cchMaxString | |
| k_cchMaxGenericString | |
| k_cchMaxXboxPairwiseID | |
| k_cbMaxGenericBytes | |
Definition at line 318 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1909 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1932 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1929 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1921 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1923 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1919 of file steamnetworkingtypes.h.
|
inline |
|
inline |
|
inline |
Definition at line 1917 of file steamnetworkingtypes.h.
|
inline |
|
inline |
Definition at line 1910 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1926 of file steamnetworkingtypes.h.
|
inline |
See if two identities are identical.
Definition at line 1934 of file steamnetworkingtypes.h.
|
inline |
Parse back a string that was generated using ToString. If we don't understand the string, but it looks "reasonable" (it matches the pattern type:<type-data> and doesn't have any funky characters, etc), then we will return true, and the type is set to k_ESteamNetworkingIdentityType_UnknownType. false will only be returned if the string looks invalid.
Definition at line 495 of file isteamnetworkingutils.h.
|
inline |
Definition at line 1930 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1927 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1920 of file steamnetworkingtypes.h.
Definition at line 1922 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1925 of file steamnetworkingtypes.h.
Definition at line 1918 of file steamnetworkingtypes.h.
|
inline |
Definition at line 1915 of file steamnetworkingtypes.h.
|
inline |
Print to a human-readable string. This is suitable for debug messages or any other time you need to encode the identity as a string. It has a URL-like format (type:<type-data>). Your buffer should be at least k_cchMaxString bytes big to avoid truncation.
See also SteamNetworkingIPAddrRender
Definition at line 494 of file isteamnetworkingutils.h.
| int SteamNetworkingIdentity::m_cbSize |
Definition at line 331 of file steamnetworkingtypes.h.
| ESteamNetworkingIdentityType SteamNetworkingIdentity::m_eType |
Type of identity.
Definition at line 260 of file steamnetworkingtypes.h.