C# Class CSharpUtils.Net.TcpTestServer

Creates a TcpListener and connects a Socket to it. It stores the two TcpClient on the object: the local to the listener and the remote one. Very useful for unittesting components that requires sockets.
Afficher le fichier Open project: soywiz/csharputils Class Usage Examples

Méthodes publiques

Свойство Type Description
LocalTcpClient System.Net.Sockets.TcpClient
RemoteTcpClient System.Net.Sockets.TcpClient
TcpListener System.Net.Sockets.TcpListener

Méthodes publiques

Méthode Description
Create ( ) : TcpTestServer

Method Details

Create() public static méthode

public static Create ( ) : TcpTestServer
Résultat TcpTestServer

Property Details

LocalTcpClient public_oe property

public TcpClient,System.Net.Sockets LocalTcpClient
Résultat System.Net.Sockets.TcpClient

RemoteTcpClient public_oe property

public TcpClient,System.Net.Sockets RemoteTcpClient
Résultat System.Net.Sockets.TcpClient

TcpListener public_oe property

public TcpListener,System.Net.Sockets TcpListener
Résultat System.Net.Sockets.TcpListener