C# Class EppLib.TcpTransport

Encapsulates the TCP transport
Inheritance: IDisposable
Afficher le fichier Open project: CodeMakerInc/EppLib.NET Class Usage Examples

Méthodes publiques

Méthode Description
Connect ( SslProtocols sslProtocols ) : void

Connect to the registry end point

Disconnect ( ) : void

Disconnect from the registry end point

Dispose ( ) : void
Read ( ) : byte[]

Read the command response

TcpTransport ( string host, int port, X509Certificate clientCertificate, bool loggingEnabled = false, int readTimeout = Timeout.Infinite, int writeTimeout = Timeout.Infinite ) : System
Write ( XmlDocument s ) : void

Writes an XmlDocument to the transport stream

Private Methods

Méthode Description
GetBytes ( XmlDocument s ) : byte[]
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method Details

Connect() public méthode

Connect to the registry end point
public Connect ( SslProtocols sslProtocols ) : void
sslProtocols SslProtocols
Résultat void

Disconnect() public méthode

Disconnect from the registry end point
public Disconnect ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Read() public méthode

Read the command response
public Read ( ) : byte[]
Résultat byte[]

TcpTransport() public méthode

public TcpTransport ( string host, int port, X509Certificate clientCertificate, bool loggingEnabled = false, int readTimeout = Timeout.Infinite, int writeTimeout = Timeout.Infinite ) : System
host string
port int
clientCertificate X509Certificate
loggingEnabled bool
readTimeout int
writeTimeout int
Résultat System

Write() public méthode

Writes an XmlDocument to the transport stream
public Write ( XmlDocument s ) : void
s System.Xml.XmlDocument
Résultat void