C# 클래스 System.Net.Sockets.Performance.Tests.SocketTestClient

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_endpoint System.Net.EndPoint
_iterations int
_log ITestOutputHelper
_port int
_recvBuffer byte[]
_recvBufferIndex int
_s Socket
_sendBuffer byte[]
_sendBufferIndex int
_server string

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
ImplementationName ( ) : string

비공개 메소드들

메소드 설명
OnClose ( ) : void
OnConnect ( SocketError error ) : void
OnReceive ( int receivedBytes, SocketError error ) : void
OnReceiveMessage ( ) : void
OnSend ( int bytesSent, SocketError error ) : void
OnSendMessage ( ) : void

메소드 상세

Close() 공개 추상적인 메소드

public abstract Close ( System.Action onCloseCallback ) : void
onCloseCallback System.Action
리턴 void

Connect() 공개 추상적인 메소드

public abstract Connect ( Action onConnectCallback ) : void
onConnectCallback Action
리턴 void

ImplementationName() 보호된 추상적인 메소드

protected abstract ImplementationName ( ) : string
리턴 string

Receive() 공개 추상적인 메소드

public abstract Receive ( SocketError>.Action onReceiveCallback ) : void
onReceiveCallback SocketError>.Action
리턴 void

RunTest() 공개 메소드

public RunTest ( ) : Task
리턴 Task

Send() 공개 추상적인 메소드

public abstract Send ( SocketError>.Action onSendCallback ) : void
onSendCallback SocketError>.Action
리턴 void

SocketTestClient() 공개 메소드

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
리턴 System.Diagnostics

SocketTestClientFactory() 공개 정적인 메소드

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
리턴 SocketTestClient

프로퍼티 상세

_endpoint 보호되어 있는 프로퍼티

protected EndPoint,System.Net _endpoint
리턴 System.Net.EndPoint

_iterations 보호되어 있는 프로퍼티

protected int _iterations
리턴 int

_log 보호되어 있는 프로퍼티

protected ITestOutputHelper _log
리턴 ITestOutputHelper

_port 보호되어 있는 프로퍼티

protected int _port
리턴 int

_recvBuffer 보호되어 있는 프로퍼티

protected byte[] _recvBuffer
리턴 byte[]

_recvBufferIndex 보호되어 있는 프로퍼티

protected int _recvBufferIndex
리턴 int

_s 보호되어 있는 프로퍼티

protected Socket _s
리턴 Socket

_sendBuffer 보호되어 있는 프로퍼티

protected byte[] _sendBuffer
리턴 byte[]

_sendBufferIndex 보호되어 있는 프로퍼티

protected int _sendBufferIndex
리턴 int

_server 보호되어 있는 프로퍼티

protected string _server
리턴 string