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

Inheritance: SocketTestClient
显示文件 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Close ( Action onCloseCallback ) : void
Connect ( Action onConnectCallback ) : void
Receive ( SocketError>.Action onReceiveCallback ) : void
Send ( SocketError>.Action onSendCallback ) : void
SocketTestClientAsync ( ITestOutputHelper log, string server, int port, int iterations, string message, Stopwatch timeProgramStart ) : System.Diagnostics

Protected Methods

Method Description
ImplementationName ( ) : string

Private Methods

Method Description
IO_Complete ( object sender, SocketAsyncEventArgs e ) : void
OnConnect ( object sender, SocketAsyncEventArgs e ) : void
ProcessConnect ( SocketAsyncEventArgs e ) : void

Method Details

Close() public method

public Close ( Action onCloseCallback ) : void
onCloseCallback Action
return void

Connect() public method

public Connect ( Action onConnectCallback ) : void
onConnectCallback Action
return void

ImplementationName() protected method

protected ImplementationName ( ) : string
return string

Receive() public method

public Receive ( SocketError>.Action onReceiveCallback ) : void
onReceiveCallback SocketError>.Action
return void

Send() public method

public Send ( SocketError>.Action onSendCallback ) : void
onSendCallback SocketError>.Action
return void

SocketTestClientAsync() public method

public SocketTestClientAsync ( 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 System.Diagnostics.Stopwatch
return System.Diagnostics