C# Class Dwarrowdelf.TcpConnection

Inheritance: IConnection
Afficher le fichier Open project: tomba/dwarrowdelf Class Usage Examples

Méthodes publiques

Méthode Description
ConnectAsync ( INetStatCollector netStatCollector = null, string debugName = null ) : Task
Disconnect ( ) : void
Dispose ( ) : void
GetMessageAsync ( ) : Task
Send ( Message msg ) : void
TcpConnection ( Socket socket, INetStatCollector netStatCollector = null, string debugName = null ) : System
TryGetMessage ( Message &msg ) : bool

Private Methods

Méthode Description
DeserializerMain ( ) : void
Dispose ( bool disposing ) : void
ReceiveInternal ( ) : Message

Method Details

ConnectAsync() public static méthode

public static ConnectAsync ( INetStatCollector netStatCollector = null, string debugName = null ) : Task
netStatCollector INetStatCollector
debugName string
Résultat Task

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetMessageAsync() public méthode

public GetMessageAsync ( ) : Task
Résultat Task

Send() public méthode

public Send ( Message msg ) : void
msg Message
Résultat void

TcpConnection() public méthode

public TcpConnection ( Socket socket, INetStatCollector netStatCollector = null, string debugName = null ) : System
socket Socket
netStatCollector INetStatCollector
debugName string
Résultat System

TryGetMessage() public méthode

public TryGetMessage ( Message &msg ) : bool
msg Message
Résultat bool