C# Class BeardedManStudios.Forge.Networking.CachedSteamP2PClient

Inheritance: IDisposable
Afficher le fichier Open project: wormszer/ForgeSnapshotDemo Class Usage Examples

Méthodes publiques

Méthode Description
CachedSteamP2PClient ( ) : Steamworks
CachedSteamP2PClient ( CSteamID endPoint ) : Steamworks
Close ( ) : void
IDisposable ( ) : void
Receive ( uint msgSize, CSteamID &from ) : BMSByte
ReceiveAsync ( ) : Task
Send ( Array dgram, int bytes, CSteamID steamId, EP2PSend type = EP2PSend.k_EP2PSendUnreliable ) : int
SendAsync ( Array datagram, int bytes ) : Task
SendAsync ( Array datagram, int bytes, IPEndPoint endPoint ) : Task
SendAsync ( Array datagram, int bytes, string hostname, int port ) : Task

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
CheckDisposed ( ) : void
CutArray ( Array orig, int length ) : byte[]
DoSend ( Array dgram, int bytes, CSteamID steamId, EP2PSend type ) : int

Method Details

CachedSteamP2PClient() public méthode

public CachedSteamP2PClient ( ) : Steamworks
Résultat Steamworks

CachedSteamP2PClient() public méthode

public CachedSteamP2PClient ( CSteamID endPoint ) : Steamworks
endPoint CSteamID
Résultat Steamworks

Close() public méthode

public Close ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

IDisposable() public méthode

public IDisposable ( ) : void
Résultat void

Receive() public méthode

public Receive ( uint msgSize, CSteamID &from ) : BMSByte
msgSize uint
from CSteamID
Résultat BMSByte

ReceiveAsync() public méthode

public ReceiveAsync ( ) : Task
Résultat Task

Send() public méthode

public Send ( Array dgram, int bytes, CSteamID steamId, EP2PSend type = EP2PSend.k_EP2PSendUnreliable ) : int
dgram Array
bytes int
steamId CSteamID
type EP2PSend
Résultat int

SendAsync() public méthode

public SendAsync ( Array datagram, int bytes ) : Task
datagram Array
bytes int
Résultat Task

SendAsync() public méthode

public SendAsync ( Array datagram, int bytes, IPEndPoint endPoint ) : Task
datagram Array
bytes int
endPoint IPEndPoint
Résultat Task

SendAsync() public méthode

public SendAsync ( Array datagram, int bytes, string hostname, int port ) : Task
datagram Array
bytes int
hostname string
port int
Résultat Task