C# Class BeardedManStudios.Network.DefaultServerTCP

Inheritance: TCPProcess
Afficher le fichier Open project: drakelinglabs/unityarmada Class Usage Examples

Méthodes publiques

Méthode Description
Connect ( string hostAddress, ushort port ) : void
DefaultServerTCP ( int maxConnections ) : System.Net.Sockets
Disconnect ( ) : void
Disconnect ( NetworkingPlayer player, string reason = "" ) : void
Send ( byte data, int length, object endpoint = null ) : void
TimeoutDisconnect ( ) : void
Write ( NetworkingPlayer player, NetworkingStream stream ) : void
Write ( NetworkingStream stream ) : void
WriteTo ( NetworkingPlayer player, NetworkingStream stream ) : void

Private Methods

Méthode Description
Listen ( object sender, DoWorkEventArgs e ) : void
ReadAsync ( object sender, DoWorkEventArgs e ) : void
ThreadedConnect ( object hostAndPort ) : void
WorkCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
WriteAndClose ( TcpClient targetSocket, NetworkingStream stream ) : void
listenWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Method Details

Connect() public méthode

public Connect ( string hostAddress, ushort port ) : void
hostAddress string
port ushort
Résultat void

DefaultServerTCP() public méthode

public DefaultServerTCP ( int maxConnections ) : System.Net.Sockets
maxConnections int
Résultat System.Net.Sockets

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

Disconnect() public méthode

public Disconnect ( NetworkingPlayer player, string reason = "" ) : void
player NetworkingPlayer
reason string
Résultat void

Send() public méthode

public Send ( byte data, int length, object endpoint = null ) : void
data byte
length int
endpoint object
Résultat void

TimeoutDisconnect() public méthode

public TimeoutDisconnect ( ) : void
Résultat void

Write() public méthode

public Write ( NetworkingPlayer player, NetworkingStream stream ) : void
player NetworkingPlayer
stream NetworkingStream
Résultat void

Write() public méthode

public Write ( NetworkingStream stream ) : void
stream NetworkingStream
Résultat void

WriteTo() public méthode

public WriteTo ( NetworkingPlayer player, NetworkingStream stream ) : void
player NetworkingPlayer
stream NetworkingStream
Résultat void