C# Class BeardedManStudios.Forge.Networking.CachedSteamP2PClient

Inheritance: IDisposable
Mostrar archivo Open project: wormszer/ForgeSnapshotDemo Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

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

Method Details

CachedSteamP2PClient() public method

public CachedSteamP2PClient ( ) : Steamworks
return Steamworks

CachedSteamP2PClient() public method

public CachedSteamP2PClient ( CSteamID endPoint ) : Steamworks
endPoint CSteamID
return Steamworks

Close() public method

public Close ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

IDisposable() public method

public IDisposable ( ) : void
return void

Receive() public method

public Receive ( uint msgSize, CSteamID &from ) : BMSByte
msgSize uint
from CSteamID
return BMSByte

ReceiveAsync() public method

public ReceiveAsync ( ) : Task
return Task

Send() public method

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

SendAsync() public method

public SendAsync ( Array datagram, int bytes ) : Task
datagram Array
bytes int
return Task

SendAsync() public method

public SendAsync ( Array datagram, int bytes, IPEndPoint endPoint ) : Task
datagram Array
bytes int
endPoint IPEndPoint
return Task

SendAsync() public method

public SendAsync ( Array datagram, int bytes, string hostname, int port ) : Task
datagram Array
bytes int
hostname string
port int
return Task