C# Class SocketClient.Program

Afficher le fichier Open project: ProfessionalCSharp/ProfessionalCSharp6

Méthodes publiques

Méthode Description
Receiver ( NetworkStream stream, CancellationToken token ) : Task
SendAndReceive ( string hostName, int port ) : Task
Sender ( NetworkStream stream, CancellationTokenSource cts ) : Task

Private Methods

Méthode Description
Main ( string args ) : void
ShowUsage ( ) : void

Method Details

Receiver() public static méthode

public static Receiver ( NetworkStream stream, CancellationToken token ) : Task
stream NetworkStream
token System.Threading.CancellationToken
Résultat Task

SendAndReceive() public static méthode

public static SendAndReceive ( string hostName, int port ) : Task
hostName string
port int
Résultat Task

Sender() public static méthode

public static Sender ( NetworkStream stream, CancellationTokenSource cts ) : Task
stream NetworkStream
cts System.Threading.CancellationTokenSource
Résultat Task