C# Class UnitTest.TCPSocket

Summary description for ClientSocket.
Afficher le fichier Open project: nberardi/hMailServer Class Usage Examples

Protected Properties

Свойство Type Description
m_oSocket Socket

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetHostAddress ( string hostName, bool allowIPv6 ) : IPAddress

Method Details

CanConnect() public méthode

public CanConnect ( int iPort ) : bool
iPort int
Résultat bool

Connect() public méthode

public Connect ( IPAddress ipaddress, int iPort ) : bool
ipaddress System.Net.IPAddress
iPort int
Résultat bool

Connect() public méthode

public Connect ( int iPort ) : bool
iPort int
Résultat bool

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

Peek() public méthode

public Peek ( ) : bool
Résultat bool

ReadUntil() public méthode

public ReadUntil ( List possibleReplies ) : string
possibleReplies List
Résultat string

ReadUntil() public méthode

public ReadUntil ( string text ) : string
text string
Résultat string

Receive() public méthode

public Receive ( ) : string
Résultat string

Send() public méthode

public Send ( string s ) : void
s string
Résultat void

TCPSocket() public méthode

public TCPSocket ( ) : System
Résultat System

TCPSocket() public méthode

public TCPSocket ( bool useSSL ) : System
useSSL bool
Résultat System

ValidateServerCertificate() public static méthode

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
Résultat bool

Property Details

m_oSocket protected_oe property

protected Socket m_oSocket
Résultat Socket