Rise
The Vieneo Province
Loading...
Searching...
No Matches
ISteamNetworking Class Referenceabstract

#include <isteamnetworking.h>

Public Member Functions

virtual bool SendP2PPacket (CSteamID steamIDRemote, const void *pubData, uint32 cubData, EP2PSend eP2PSendType, int nChannel=0)=0
virtual bool IsP2PPacketAvailable (uint32 *pcubMsgSize, int nChannel=0)=0
virtual bool ReadP2PPacket (void *pubDest, uint32 cubDest, uint32 *pcubMsgSize, CSteamID *psteamIDRemote, int nChannel=0)=0
virtual bool AcceptP2PSessionWithUser (CSteamID steamIDRemote)=0
virtual bool CloseP2PSessionWithUser (CSteamID steamIDRemote)=0
virtual bool CloseP2PChannelWithUser (CSteamID steamIDRemote, int nChannel)=0
virtual bool GetP2PSessionState (CSteamID steamIDRemote, P2PSessionState_t *pConnectionState)=0
virtual bool AllowP2PPacketRelay (bool bAllow)=0
virtual SNetListenSocket_t CreateListenSocket (int nVirtualP2PPort, SteamIPAddress_t nIP, uint16 nPort, bool bAllowUseOfPacketRelay)=0
virtual SNetSocket_t CreateP2PConnectionSocket (CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay)=0
virtual SNetSocket_t CreateConnectionSocket (SteamIPAddress_t nIP, uint16 nPort, int nTimeoutSec)=0
virtual bool DestroySocket (SNetSocket_t hSocket, bool bNotifyRemoteEnd)=0
virtual bool DestroyListenSocket (SNetListenSocket_t hSocket, bool bNotifyRemoteEnd)=0
virtual bool SendDataOnSocket (SNetSocket_t hSocket, void *pubData, uint32 cubData, bool bReliable)=0
virtual bool IsDataAvailableOnSocket (SNetSocket_t hSocket, uint32 *pcubMsgSize)=0
virtual bool RetrieveDataFromSocket (SNetSocket_t hSocket, void *pubDest, uint32 cubDest, uint32 *pcubMsgSize)=0
virtual bool IsDataAvailable (SNetListenSocket_t hListenSocket, uint32 *pcubMsgSize, SNetSocket_t *phSocket)=0
virtual bool RetrieveData (SNetListenSocket_t hListenSocket, void *pubDest, uint32 cubDest, uint32 *pcubMsgSize, SNetSocket_t *phSocket)=0
virtual bool GetSocketInfo (SNetSocket_t hSocket, CSteamID *pSteamIDRemote, int *peSocketStatus, SteamIPAddress_t *punIPRemote, uint16 *punPortRemote)=0
virtual bool GetListenSocketInfo (SNetListenSocket_t hListenSocket, SteamIPAddress_t *pnIP, uint16 *pnPort)=0
virtual ESNetSocketConnectionType GetSocketConnectionType (SNetSocket_t hSocket)=0
virtual int GetMaxPacketSize (SNetSocket_t hSocket)=0

Detailed Description

the Steamworks SDK. Please see ISteamNetworkingSockets and ISteamNetworkingMessages

Definition at line 132 of file isteamnetworking.h.

Member Function Documentation

◆ AcceptP2PSessionWithUser()

virtual bool ISteamNetworking::AcceptP2PSessionWithUser ( CSteamID steamIDRemote)
pure virtual

◆ AllowP2PPacketRelay()

virtual bool ISteamNetworking::AllowP2PPacketRelay ( bool bAllow)
pure virtual

◆ CloseP2PChannelWithUser()

virtual bool ISteamNetworking::CloseP2PChannelWithUser ( CSteamID steamIDRemote,
int nChannel )
pure virtual

◆ CloseP2PSessionWithUser()

virtual bool ISteamNetworking::CloseP2PSessionWithUser ( CSteamID steamIDRemote)
pure virtual

◆ CreateConnectionSocket()

virtual SNetSocket_t ISteamNetworking::CreateConnectionSocket ( SteamIPAddress_t nIP,
uint16 nPort,
int nTimeoutSec )
pure virtual

◆ CreateListenSocket()

virtual SNetListenSocket_t ISteamNetworking::CreateListenSocket ( int nVirtualP2PPort,
SteamIPAddress_t nIP,
uint16 nPort,
bool bAllowUseOfPacketRelay )
pure virtual

◆ CreateP2PConnectionSocket()

virtual SNetSocket_t ISteamNetworking::CreateP2PConnectionSocket ( CSteamID steamIDTarget,
int nVirtualPort,
int nTimeoutSec,
bool bAllowUseOfPacketRelay )
pure virtual

◆ DestroyListenSocket()

virtual bool ISteamNetworking::DestroyListenSocket ( SNetListenSocket_t hSocket,
bool bNotifyRemoteEnd )
pure virtual

◆ DestroySocket()

virtual bool ISteamNetworking::DestroySocket ( SNetSocket_t hSocket,
bool bNotifyRemoteEnd )
pure virtual

◆ GetListenSocketInfo()

virtual bool ISteamNetworking::GetListenSocketInfo ( SNetListenSocket_t hListenSocket,
SteamIPAddress_t * pnIP,
uint16 * pnPort )
pure virtual

◆ GetMaxPacketSize()

virtual int ISteamNetworking::GetMaxPacketSize ( SNetSocket_t hSocket)
pure virtual

◆ GetP2PSessionState()

virtual bool ISteamNetworking::GetP2PSessionState ( CSteamID steamIDRemote,
P2PSessionState_t * pConnectionState )
pure virtual

◆ GetSocketConnectionType()

virtual ESNetSocketConnectionType ISteamNetworking::GetSocketConnectionType ( SNetSocket_t hSocket)
pure virtual

◆ GetSocketInfo()

virtual bool ISteamNetworking::GetSocketInfo ( SNetSocket_t hSocket,
CSteamID * pSteamIDRemote,
int * peSocketStatus,
SteamIPAddress_t * punIPRemote,
uint16 * punPortRemote )
pure virtual

◆ IsDataAvailable()

virtual bool ISteamNetworking::IsDataAvailable ( SNetListenSocket_t hListenSocket,
uint32 * pcubMsgSize,
SNetSocket_t * phSocket )
pure virtual

◆ IsDataAvailableOnSocket()

virtual bool ISteamNetworking::IsDataAvailableOnSocket ( SNetSocket_t hSocket,
uint32 * pcubMsgSize )
pure virtual

◆ IsP2PPacketAvailable()

virtual bool ISteamNetworking::IsP2PPacketAvailable ( uint32 * pcubMsgSize,
int nChannel = 0 )
pure virtual

◆ ReadP2PPacket()

virtual bool ISteamNetworking::ReadP2PPacket ( void * pubDest,
uint32 cubDest,
uint32 * pcubMsgSize,
CSteamID * psteamIDRemote,
int nChannel = 0 )
pure virtual

◆ RetrieveData()

virtual bool ISteamNetworking::RetrieveData ( SNetListenSocket_t hListenSocket,
void * pubDest,
uint32 cubDest,
uint32 * pcubMsgSize,
SNetSocket_t * phSocket )
pure virtual

◆ RetrieveDataFromSocket()

virtual bool ISteamNetworking::RetrieveDataFromSocket ( SNetSocket_t hSocket,
void * pubDest,
uint32 cubDest,
uint32 * pcubMsgSize )
pure virtual

◆ SendDataOnSocket()

virtual bool ISteamNetworking::SendDataOnSocket ( SNetSocket_t hSocket,
void * pubData,
uint32 cubData,
bool bReliable )
pure virtual

◆ SendP2PPacket()

virtual bool ISteamNetworking::SendP2PPacket ( CSteamID steamIDRemote,
const void * pubData,
uint32 cubData,
EP2PSend eP2PSendType,
int nChannel = 0 )
pure virtual

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