3#ifndef ISTEAMNETWORKINGSOCKETS
4#define ISTEAMNETWORKINGSOCKETS
12class ISteamNetworkingConnectionSignaling;
13class ISteamNetworkingSignalingRecvContext;
595 virtual bool ReceivedRelayAuthTicket(
const void *pvTicket,
int cbTicket, SteamDatagramRelayAuthTicket *pOutParsedTicket ) = 0;
944#define STEAMNETWORKINGSOCKETS_INTERFACE_VERSION "SteamNetworkingSockets013"
949#ifdef STEAMNETWORKINGSOCKETS_STANDALONELIB
956 inline ISteamNetworkingSockets *SteamGameServerNetworkingSockets_Lib() {
return SteamGameServerNetworkingSockets_LibV13(); }
958 #ifndef STEAMNETWORKINGSOCKETS_STEAMAPI
965#ifdef STEAMNETWORKINGSOCKETS_STEAMAPI
969 #ifndef STEAMNETWORKINGSOCKETS_STANDALONELIB
976#if defined( VALVE_CALLBACK_PACK_SMALL )
977#pragma pack( push, 4 )
978#elif defined( VALVE_CALLBACK_PACK_LARGE )
979#pragma pack( push, 8 )
981#error "Must define VALVE_CALLBACK_PACK_SMALL or VALVE_CALLBACK_PACK_LARGE"
virtual HSteamNetConnection ConnectToHostedDedicatedServer(const SteamNetworkingIdentity &identityTarget, int nRemoteVirtualPort, int nOptions, const SteamNetworkingConfigValue_t *pOptions)=0
virtual EResult GetRemoteFakeIPForConnection(HSteamNetConnection hConn, SteamNetworkingIPAddr *pOutAddr)=0
virtual HSteamNetConnection ConnectP2P(const SteamNetworkingIdentity &identityRemote, int nRemoteVirtualPort, int nOptions, const SteamNetworkingConfigValue_t *pOptions)=0
virtual HSteamNetPollGroup CreatePollGroup()=0
virtual uint16 GetHostedDedicatedServerPort()=0
virtual void GetFakeIP(int idxFirstPort, SteamNetworkingFakeIPResult_t *pInfo)=0
virtual bool GetConnectionInfo(HSteamNetConnection hConn, SteamNetConnectionInfo_t *pInfo)=0
Returns basic information about the high-level state of the connection.
virtual bool BeginAsyncRequestFakeIP(int nNumPorts)=0
virtual bool SetConnectionUserData(HSteamNetConnection hPeer, int64 nUserData)=0
virtual int ReceiveMessagesOnPollGroup(HSteamNetPollGroup hPollGroup, SteamNetworkingMessage_t **ppOutMessages, int nMaxMessages)=0
virtual bool DestroyPollGroup(HSteamNetPollGroup hPollGroup)=0
virtual bool GetIdentity(SteamNetworkingIdentity *pIdentity)=0
virtual HSteamNetConnection ConnectP2PCustomSignaling(ISteamNetworkingConnectionSignaling *pSignaling, const SteamNetworkingIdentity *pPeerIdentity, int nRemoteVirtualPort, int nOptions, const SteamNetworkingConfigValue_t *pOptions)=0
virtual ESteamNetworkingAvailability GetAuthenticationStatus(SteamNetAuthenticationStatus_t *pDetails)=0
virtual ESteamNetworkingAvailability InitAuthentication()=0
~ISteamNetworkingSockets()
virtual HSteamNetConnection ConnectByIPAddress(const SteamNetworkingIPAddr &address, int nOptions, const SteamNetworkingConfigValue_t *pOptions)=0
virtual EResult ConfigureConnectionLanes(HSteamNetConnection hConn, int nNumLanes, const int *pLanePriorities, const uint16 *pLaneWeights)=0
virtual bool SetConnectionPollGroup(HSteamNetConnection hConn, HSteamNetPollGroup hPollGroup)=0
virtual HSteamListenSocket CreateListenSocketP2P(int nLocalVirtualPort, int nOptions, const SteamNetworkingConfigValue_t *pOptions)=0
virtual void SetConnectionName(HSteamNetConnection hPeer, const char *pszName)=0
Set a name for the connection, used mostly for debugging.
virtual HSteamListenSocket CreateListenSocketIP(const SteamNetworkingIPAddr &localAddress, int nOptions, const SteamNetworkingConfigValue_t *pOptions)=0
virtual bool ReceivedRelayAuthTicket(const void *pvTicket, int cbTicket, SteamDatagramRelayAuthTicket *pOutParsedTicket)=0
virtual int GetDetailedConnectionStatus(HSteamNetConnection hConn, char *pszBuf, int cbBuf)=0
virtual bool GetListenSocketAddress(HSteamListenSocket hSocket, SteamNetworkingIPAddr *address)=0
virtual EResult SendMessageToConnection(HSteamNetConnection hConn, const void *pData, uint32 cbData, int nSendFlags, int64 *pOutMessageNumber)=0
virtual bool CloseConnection(HSteamNetConnection hPeer, int nReason, const char *pszDebug, bool bEnableLinger)=0
virtual bool GetCertificateRequest(int *pcbBlob, void *pBlob, SteamNetworkingErrMsg &errMsg)=0
virtual bool ReceivedP2PCustomSignal(const void *pMsg, int cbMsg, ISteamNetworkingSignalingRecvContext *pContext)=0
virtual EResult GetGameCoordinatorServerLogin(SteamDatagramGameCoordinatorServerLogin *pLoginInfo, int *pcbSignedBlob, void *pBlob)=0
virtual EResult FlushMessagesOnConnection(HSteamNetConnection hConn)=0
virtual bool SetCertificate(const void *pCertificate, int cbCertificate, SteamNetworkingErrMsg &errMsg)=0
virtual bool CreateSocketPair(HSteamNetConnection *pOutConnection1, HSteamNetConnection *pOutConnection2, bool bUseNetworkLoopback, const SteamNetworkingIdentity *pPeerIdentity1, const SteamNetworkingIdentity *pPeerIdentity2)=0
virtual HSteamListenSocket CreateListenSocketP2PFakeIP(int idxFakePort, int nOptions, const SteamNetworkingConfigValue_t *pOptions)=0
virtual bool GetConnectionName(HSteamNetConnection hPeer, char *pszName, int nMaxLen)=0
Fetch connection name. Returns false if handle is invalid.
virtual void RunCallbacks()=0
virtual HSteamListenSocket CreateHostedDedicatedServerListenSocket(int nLocalVirtualPort, int nOptions, const SteamNetworkingConfigValue_t *pOptions)=0
virtual SteamNetworkingPOPID GetHostedDedicatedServerPOPID()=0
virtual EResult GetHostedDedicatedServerAddress(SteamDatagramHostedAddress *pRouting)=0
virtual void ResetIdentity(const SteamNetworkingIdentity *pIdentity)=0
virtual bool CloseListenSocket(HSteamListenSocket hSocket)=0
virtual EResult AcceptConnection(HSteamNetConnection hConn)=0
virtual EResult GetConnectionRealTimeStatus(HSteamNetConnection hConn, SteamNetConnectionRealTimeStatus_t *pStatus, int nLanes, SteamNetConnectionRealTimeLaneStatus_t *pLanes)=0
virtual void SendMessages(int nMessages, SteamNetworkingMessage_t **pMessages, int64 *pOutMessageNumberOrResult, bool bDeleteFailedMessages)=0
virtual int FindRelayAuthTicketForServer(const SteamNetworkingIdentity &identityGameServer, int nRemoteVirtualPort, SteamDatagramRelayAuthTicket *pOutParsedTicket)=0
virtual int64 GetConnectionUserData(HSteamNetConnection hPeer)=0
virtual ISteamNetworkingFakeUDPPort * CreateFakeUDPPort(int idxFakeServerPort)=0
virtual int ReceiveMessagesOnConnection(HSteamNetConnection hConn, SteamNetworkingMessage_t **ppOutMessages, int nMaxMessages)=0
ISteamNetworkingSockets * SteamGameServerNetworkingSockets()
#define STEAMNETWORKINGSOCKETS_INTERFACE_VERSION
ISteamNetworkingSockets * SteamNetworkingSockets()
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
#define STEAM_DEFINE_USER_INTERFACE_ACCESSOR(type, name, version)
@ k_iSteamNetworkingSocketsCallbacks
#define STEAM_DEFINE_GAMESERVER_INTERFACE_ACCESSOR(type, name, version)
#define STEAMNETWORKINGSOCKETS_INTERFACE
uint32 HSteamNetConnection
Handle used to identify a connection to a remote host.
uint32 HSteamNetPollGroup
uint32 HSteamListenSocket
ESteamNetworkingAvailability
Describe the status of a particular network resource.
ESteamNetworkingConnectionState
High level connection status.
uint32 SteamNetworkingPOPID
char SteamNetworkingErrMsg[k_cchMaxSteamNetworkingErrMsg]
ESteamNetworkingAvailability m_eAvail
Status.
Describe the state of a connection.
Quick status of a particular lane.
Callback struct used to notify when a connection has changed state.
ESteamNetworkingConnectionState m_eOldState
Previous state. (Current state is in m_info.m_eState).
HSteamNetConnection m_hConn
Connection handle.
SteamNetConnectionInfo_t m_info
Full connection info.
Callback struct used to notify when a connection has changed state.
A message that has been received.