C# Class System.Net.Sockets.Performance.Tests.SocketTestClient

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Protected Properties

Свойство Type Description
_endpoint System.Net.EndPoint
_iterations int
_log ITestOutputHelper
_port int
_recvBuffer byte[]
_recvBufferIndex int
_s Socket
_sendBuffer byte[]
_sendBufferIndex int
_server string

Méthodes publiques

Méthode Description
Close ( System.Action onCloseCallback ) : void
Connect ( Action onConnectCallback ) : void
Receive ( SocketError>.Action onReceiveCallback ) : void
RunTest ( ) : Task
Send ( SocketError>.Action onSendCallback ) : void
SocketTestClient ( ITestOutputHelper log, string server, int port, int iterations, string message, Stopwatch timeProgramStart ) : System.Diagnostics
SocketTestClientFactory ( ITestOutputHelper log, SocketImplementationType type, string server, int port, int iterations, string message, Stopwatch timeProgramStart ) : SocketTestClient

Méthodes protégées

Méthode Description
ImplementationName ( ) : string

Private Methods

Méthode Description
OnClose ( ) : void
OnConnect ( SocketError error ) : void
OnReceive ( int receivedBytes, SocketError error ) : void
OnReceiveMessage ( ) : void
OnSend ( int bytesSent, SocketError error ) : void
OnSendMessage ( ) : void

Method Details

Close() public abstract méthode

public abstract Close ( System.Action onCloseCallback ) : void
onCloseCallback System.Action
Résultat void

Connect() public abstract méthode

public abstract Connect ( Action onConnectCallback ) : void
onConnectCallback Action
Résultat void

ImplementationName() protected abstract méthode

protected abstract ImplementationName ( ) : string
Résultat string

Receive() public abstract méthode

public abstract Receive ( SocketError>.Action onReceiveCallback ) : void
onReceiveCallback SocketError>.Action
Résultat void

RunTest() public méthode

public RunTest ( ) : Task
Résultat Task

Send() public abstract méthode

public abstract Send ( SocketError>.Action onSendCallback ) : void
onSendCallback SocketError>.Action
Résultat void

SocketTestClient() public méthode

public SocketTestClient ( ITestOutputHelper log, string server, int port, int iterations, string message, Stopwatch timeProgramStart ) : System.Diagnostics
log ITestOutputHelper
server string
port int
iterations int
message string
timeProgramStart Stopwatch
Résultat System.Diagnostics

SocketTestClientFactory() public static méthode

public static SocketTestClientFactory ( ITestOutputHelper log, SocketImplementationType type, string server, int port, int iterations, string message, Stopwatch timeProgramStart ) : SocketTestClient
log ITestOutputHelper
type SocketImplementationType
server string
port int
iterations int
message string
timeProgramStart Stopwatch
Résultat SocketTestClient

Property Details

_endpoint protected_oe property

protected EndPoint,System.Net _endpoint
Résultat System.Net.EndPoint

_iterations protected_oe property

protected int _iterations
Résultat int

_log protected_oe property

protected ITestOutputHelper _log
Résultat ITestOutputHelper

_port protected_oe property

protected int _port
Résultat int

_recvBuffer protected_oe property

protected byte[] _recvBuffer
Résultat byte[]

_recvBufferIndex protected_oe property

protected int _recvBufferIndex
Résultat int

_s protected_oe property

protected Socket _s
Résultat Socket

_sendBuffer protected_oe property

protected byte[] _sendBuffer
Résultat byte[]

_sendBufferIndex protected_oe property

protected int _sendBufferIndex
Résultat int

_server protected_oe property

protected string _server
Résultat string