C# Class Valve.Steamworks.CSteamNetworking

Inheritance: ISteamNetworking
Afficher le fichier Open project: kronosaur/Transcendence

Méthodes publiques

Méthode Description
AcceptP2PSessionWithUser ( ulong steamIDRemote ) : bool
AllowP2PPacketRelay ( bool bAllow ) : bool
CSteamNetworking ( IntPtr SteamNetworking )
CloseP2PChannelWithUser ( ulong steamIDRemote, int nChannel ) : bool
CloseP2PSessionWithUser ( ulong steamIDRemote ) : bool
CreateConnectionSocket ( uint nIP, char nPort, int nTimeoutSec ) : uint
CreateListenSocket ( int nVirtualP2PPort, uint nIP, char nPort, bool bAllowUseOfPacketRelay ) : uint
CreateP2PConnectionSocket ( ulong steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay ) : uint
DestroyListenSocket ( uint hSocket, bool bNotifyRemoteEnd ) : bool
DestroySocket ( uint hSocket, bool bNotifyRemoteEnd ) : bool
GetIntPtr ( ) : IntPtr
GetListenSocketInfo ( uint hListenSocket, uint &pnIP, char &pnPort ) : bool
GetMaxPacketSize ( uint hSocket ) : int
GetP2PSessionState ( ulong steamIDRemote, P2PSessionState_t &pConnectionState ) : bool
GetSocketConnectionType ( uint hSocket ) : uint
GetSocketInfo ( uint hSocket, CSteamID &pSteamIDRemote, int &peSocketStatus, uint &punIPRemote, char &punPortRemote ) : bool
IsDataAvailable ( uint hListenSocket, uint &pcubMsgSize, uint &phSocket ) : bool
IsDataAvailableOnSocket ( uint hSocket, uint &pcubMsgSize ) : bool
IsP2PPacketAvailable ( uint &pcubMsgSize, int nChannel ) : bool
ReadP2PPacket ( IntPtr pubDest, uint cubDest, uint &pcubMsgSize, CSteamID &psteamIDRemote, int nChannel ) : bool
RetrieveData ( uint hListenSocket, IntPtr pubDest, uint cubDest, uint &pcubMsgSize, uint &phSocket ) : bool
RetrieveDataFromSocket ( uint hSocket, IntPtr pubDest, uint cubDest, uint &pcubMsgSize ) : bool
SendDataOnSocket ( uint hSocket, IntPtr pubData, uint cubData, bool bReliable ) : bool
SendP2PPacket ( ulong steamIDRemote, IntPtr pubData, uint cubData, uint eP2PSendType, int nChannel ) : bool

Private Methods

Méthode Description
CheckIfUsable ( ) : void

Method Details

AcceptP2PSessionWithUser() public méthode

public AcceptP2PSessionWithUser ( ulong steamIDRemote ) : bool
steamIDRemote ulong
Résultat bool

AllowP2PPacketRelay() public méthode

public AllowP2PPacketRelay ( bool bAllow ) : bool
bAllow bool
Résultat bool

CSteamNetworking() public méthode

public CSteamNetworking ( IntPtr SteamNetworking )
SteamNetworking System.IntPtr

CloseP2PChannelWithUser() public méthode

public CloseP2PChannelWithUser ( ulong steamIDRemote, int nChannel ) : bool
steamIDRemote ulong
nChannel int
Résultat bool

CloseP2PSessionWithUser() public méthode

public CloseP2PSessionWithUser ( ulong steamIDRemote ) : bool
steamIDRemote ulong
Résultat bool

CreateConnectionSocket() public méthode

public CreateConnectionSocket ( uint nIP, char nPort, int nTimeoutSec ) : uint
nIP uint
nPort char
nTimeoutSec int
Résultat uint

CreateListenSocket() public méthode

public CreateListenSocket ( int nVirtualP2PPort, uint nIP, char nPort, bool bAllowUseOfPacketRelay ) : uint
nVirtualP2PPort int
nIP uint
nPort char
bAllowUseOfPacketRelay bool
Résultat uint

CreateP2PConnectionSocket() public méthode

public CreateP2PConnectionSocket ( ulong steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay ) : uint
steamIDTarget ulong
nVirtualPort int
nTimeoutSec int
bAllowUseOfPacketRelay bool
Résultat uint

DestroyListenSocket() public méthode

public DestroyListenSocket ( uint hSocket, bool bNotifyRemoteEnd ) : bool
hSocket uint
bNotifyRemoteEnd bool
Résultat bool

DestroySocket() public méthode

public DestroySocket ( uint hSocket, bool bNotifyRemoteEnd ) : bool
hSocket uint
bNotifyRemoteEnd bool
Résultat bool

GetIntPtr() public méthode

public GetIntPtr ( ) : IntPtr
Résultat System.IntPtr

GetListenSocketInfo() public méthode

public GetListenSocketInfo ( uint hListenSocket, uint &pnIP, char &pnPort ) : bool
hListenSocket uint
pnIP uint
pnPort char
Résultat bool

GetMaxPacketSize() public méthode

public GetMaxPacketSize ( uint hSocket ) : int
hSocket uint
Résultat int

GetP2PSessionState() public méthode

public GetP2PSessionState ( ulong steamIDRemote, P2PSessionState_t &pConnectionState ) : bool
steamIDRemote ulong
pConnectionState P2PSessionState_t
Résultat bool

GetSocketConnectionType() public méthode

public GetSocketConnectionType ( uint hSocket ) : uint
hSocket uint
Résultat uint

GetSocketInfo() public méthode

public GetSocketInfo ( uint hSocket, CSteamID &pSteamIDRemote, int &peSocketStatus, uint &punIPRemote, char &punPortRemote ) : bool
hSocket uint
pSteamIDRemote CSteamID
peSocketStatus int
punIPRemote uint
punPortRemote char
Résultat bool

IsDataAvailable() public méthode

public IsDataAvailable ( uint hListenSocket, uint &pcubMsgSize, uint &phSocket ) : bool
hListenSocket uint
pcubMsgSize uint
phSocket uint
Résultat bool

IsDataAvailableOnSocket() public méthode

public IsDataAvailableOnSocket ( uint hSocket, uint &pcubMsgSize ) : bool
hSocket uint
pcubMsgSize uint
Résultat bool

IsP2PPacketAvailable() public méthode

public IsP2PPacketAvailable ( uint &pcubMsgSize, int nChannel ) : bool
pcubMsgSize uint
nChannel int
Résultat bool

ReadP2PPacket() public méthode

public ReadP2PPacket ( IntPtr pubDest, uint cubDest, uint &pcubMsgSize, CSteamID &psteamIDRemote, int nChannel ) : bool
pubDest System.IntPtr
cubDest uint
pcubMsgSize uint
psteamIDRemote CSteamID
nChannel int
Résultat bool

RetrieveData() public méthode

public RetrieveData ( uint hListenSocket, IntPtr pubDest, uint cubDest, uint &pcubMsgSize, uint &phSocket ) : bool
hListenSocket uint
pubDest System.IntPtr
cubDest uint
pcubMsgSize uint
phSocket uint
Résultat bool

RetrieveDataFromSocket() public méthode

public RetrieveDataFromSocket ( uint hSocket, IntPtr pubDest, uint cubDest, uint &pcubMsgSize ) : bool
hSocket uint
pubDest System.IntPtr
cubDest uint
pcubMsgSize uint
Résultat bool

SendDataOnSocket() public méthode

public SendDataOnSocket ( uint hSocket, IntPtr pubData, uint cubData, bool bReliable ) : bool
hSocket uint
pubData System.IntPtr
cubData uint
bReliable bool
Résultat bool

SendP2PPacket() public méthode

public SendP2PPacket ( ulong steamIDRemote, IntPtr pubData, uint cubData, uint eP2PSendType, int nChannel ) : bool
steamIDRemote ulong
pubData System.IntPtr
cubData uint
eP2PSendType uint
nChannel int
Résultat bool