C# Class Valve.Steamworks.CSteamNetworking

Inheritance: ISteamNetworking
Exibir arquivo Open project: kronosaur/Transcendence

Public Methods

Method 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

Method Description
CheckIfUsable ( ) : void

Method Details

AcceptP2PSessionWithUser() public method

public AcceptP2PSessionWithUser ( ulong steamIDRemote ) : bool
steamIDRemote ulong
return bool

AllowP2PPacketRelay() public method

public AllowP2PPacketRelay ( bool bAllow ) : bool
bAllow bool
return bool

CSteamNetworking() public method

public CSteamNetworking ( IntPtr SteamNetworking )
SteamNetworking System.IntPtr

CloseP2PChannelWithUser() public method

public CloseP2PChannelWithUser ( ulong steamIDRemote, int nChannel ) : bool
steamIDRemote ulong
nChannel int
return bool

CloseP2PSessionWithUser() public method

public CloseP2PSessionWithUser ( ulong steamIDRemote ) : bool
steamIDRemote ulong
return bool

CreateConnectionSocket() public method

public CreateConnectionSocket ( uint nIP, char nPort, int nTimeoutSec ) : uint
nIP uint
nPort char
nTimeoutSec int
return uint

CreateListenSocket() public method

public CreateListenSocket ( int nVirtualP2PPort, uint nIP, char nPort, bool bAllowUseOfPacketRelay ) : uint
nVirtualP2PPort int
nIP uint
nPort char
bAllowUseOfPacketRelay bool
return uint

CreateP2PConnectionSocket() public method

public CreateP2PConnectionSocket ( ulong steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay ) : uint
steamIDTarget ulong
nVirtualPort int
nTimeoutSec int
bAllowUseOfPacketRelay bool
return uint

DestroyListenSocket() public method

public DestroyListenSocket ( uint hSocket, bool bNotifyRemoteEnd ) : bool
hSocket uint
bNotifyRemoteEnd bool
return bool

DestroySocket() public method

public DestroySocket ( uint hSocket, bool bNotifyRemoteEnd ) : bool
hSocket uint
bNotifyRemoteEnd bool
return bool

GetIntPtr() public method

public GetIntPtr ( ) : IntPtr
return System.IntPtr

GetListenSocketInfo() public method

public GetListenSocketInfo ( uint hListenSocket, uint &pnIP, char &pnPort ) : bool
hListenSocket uint
pnIP uint
pnPort char
return bool

GetMaxPacketSize() public method

public GetMaxPacketSize ( uint hSocket ) : int
hSocket uint
return int

GetP2PSessionState() public method

public GetP2PSessionState ( ulong steamIDRemote, P2PSessionState_t &pConnectionState ) : bool
steamIDRemote ulong
pConnectionState P2PSessionState_t
return bool

GetSocketConnectionType() public method

public GetSocketConnectionType ( uint hSocket ) : uint
hSocket uint
return uint

GetSocketInfo() public method

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

IsDataAvailable() public method

public IsDataAvailable ( uint hListenSocket, uint &pcubMsgSize, uint &phSocket ) : bool
hListenSocket uint
pcubMsgSize uint
phSocket uint
return bool

IsDataAvailableOnSocket() public method

public IsDataAvailableOnSocket ( uint hSocket, uint &pcubMsgSize ) : bool
hSocket uint
pcubMsgSize uint
return bool

IsP2PPacketAvailable() public method

public IsP2PPacketAvailable ( uint &pcubMsgSize, int nChannel ) : bool
pcubMsgSize uint
nChannel int
return bool

ReadP2PPacket() public method

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

RetrieveData() public method

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

RetrieveDataFromSocket() public method

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

SendDataOnSocket() public method

public SendDataOnSocket ( uint hSocket, IntPtr pubData, uint cubData, bool bReliable ) : bool
hSocket uint
pubData System.IntPtr
cubData uint
bReliable bool
return bool

SendP2PPacket() public method

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