C# 클래스 UnitTest.TCPSocket

Summary description for ClientSocket.
파일 보기 프로젝트 열기: nberardi/hMailServer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_oSocket Socket

공개 메소드들

메소드 설명
CanConnect ( int iPort ) : bool
Connect ( IPAddress ipaddress, int iPort ) : bool
Connect ( int iPort ) : bool
Disconnect ( ) : void
Peek ( ) : bool
ReadUntil ( List possibleReplies ) : string
ReadUntil ( string text ) : string
Receive ( ) : string
Send ( string s ) : void
TCPSocket ( ) : System
TCPSocket ( bool useSSL ) : System
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

비공개 메소드들

메소드 설명
GetHostAddress ( string hostName, bool allowIPv6 ) : IPAddress

메소드 상세

CanConnect() 공개 메소드

public CanConnect ( int iPort ) : bool
iPort int
리턴 bool

Connect() 공개 메소드

public Connect ( IPAddress ipaddress, int iPort ) : bool
ipaddress System.Net.IPAddress
iPort int
리턴 bool

Connect() 공개 메소드

public Connect ( int iPort ) : bool
iPort int
리턴 bool

Disconnect() 공개 메소드

public Disconnect ( ) : void
리턴 void

Peek() 공개 메소드

public Peek ( ) : bool
리턴 bool

ReadUntil() 공개 메소드

public ReadUntil ( List possibleReplies ) : string
possibleReplies List
리턴 string

ReadUntil() 공개 메소드

public ReadUntil ( string text ) : string
text string
리턴 string

Receive() 공개 메소드

public Receive ( ) : string
리턴 string

Send() 공개 메소드

public Send ( string s ) : void
s string
리턴 void

TCPSocket() 공개 메소드

public TCPSocket ( ) : System
리턴 System

TCPSocket() 공개 메소드

public TCPSocket ( bool useSSL ) : System
useSSL bool
리턴 System

ValidateServerCertificate() 공개 정적인 메소드

public static ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
리턴 bool

프로퍼티 상세

m_oSocket 보호되어 있는 프로퍼티

protected Socket m_oSocket
리턴 Socket