C# Class ExitGames.Client.Photon.SocketUdp

Internal class to encapsulate the network i/o functionality for the realtime libary.
Inheritance: IPhotonSocket, IDisposable
Mostrar archivo Open project: daniel-cheng/stellar

Public Methods

Method Description
Connect ( ) : bool
Disconnect ( ) : bool
Dispose ( ) : void
Receive ( byte &data ) : PhotonSocketError
ReceiveLoop ( ) : void

Endless loop, run in Receive Thread.

Send ( byte data, int length ) : PhotonSocketError

used by PhotonPeer*

SocketUdp ( PeerBase npeer ) : System

Private Methods

Method Description
DnsAndConnect ( ) : void

Method Details

Connect() public method

public Connect ( ) : bool
return bool

Disconnect() public method

public Disconnect ( ) : bool
return bool

Dispose() public method

public Dispose ( ) : void
return void

Receive() public method

public Receive ( byte &data ) : PhotonSocketError
data byte
return PhotonSocketError

ReceiveLoop() public method

Endless loop, run in Receive Thread.
public ReceiveLoop ( ) : void
return void

Send() public method

used by PhotonPeer*
public Send ( byte data, int length ) : PhotonSocketError
data byte
length int
return PhotonSocketError

SocketUdp() public method

public SocketUdp ( PeerBase npeer ) : System
npeer PeerBase
return System