C# Class System.Data.SqlClient.SNI.SNITCPHandle

TCP connection handle
Inheritance: System.Data.SqlClient.SNI.SNIHandle
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
CheckConnection ( ) : uint

Check SNI handle connection

DisableSsl ( ) : void

Disable SSL

Dispose ( ) : void

Dispose object

EnableSsl ( uint options ) : uint

Enable SSL

KillConnection ( ) : void

Test handle for killing underlying connection

Receive ( SNIPacket &packet, int timeoutInMilliseconds ) : uint

Receive a packet synchronously

ReceiveAsync ( SNIPacket &packet ) : uint

Receive a packet asynchronously

SNITCPHandle ( string serverName, int port, long timerExpire, object callbackObject, bool parallel ) : System.IO

Constructor

Send ( SNIPacket packet ) : uint

Send a packet synchronously

SendAsync ( SNIPacket packet, SNIAsyncCallback callback = null ) : uint

Send a packet asynchronously

SetAsyncCallbacks ( SNIAsyncCallback receiveCallback, SNIAsyncCallback sendCallback ) : void

Set async callbacks

SetBufferSize ( int bufferSize ) : void

Set buffer size

Private Methods

Méthode Description
ConnectAsync ( IPAddress serverAddresses, int port ) : Task
ConnectAsync ( string serverName, int port ) : Task
ReportErrorAndReleasePacket ( SNIPacket packet, Exception sniException ) : uint
ReportErrorAndReleasePacket ( SNIPacket packet, uint nativeError, uint sniError, string errorMessage ) : uint
ReportTcpSNIError ( Exception sniException ) : uint
ReportTcpSNIError ( uint nativeError, uint sniError, string errorMessage ) : uint
ValidateServerCertificate ( object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors policyErrors ) : bool

Validate server certificate callback

Method Details

CheckConnection() public méthode

Check SNI handle connection
public CheckConnection ( ) : uint
Résultat uint

DisableSsl() public méthode

Disable SSL
public DisableSsl ( ) : void
Résultat void

Dispose() public méthode

Dispose object
public Dispose ( ) : void
Résultat void

EnableSsl() public méthode

Enable SSL
public EnableSsl ( uint options ) : uint
options uint
Résultat uint

KillConnection() public méthode

Test handle for killing underlying connection
public KillConnection ( ) : void
Résultat void

Receive() public méthode

Receive a packet synchronously
public Receive ( SNIPacket &packet, int timeoutInMilliseconds ) : uint
packet SNIPacket SNI packet
timeoutInMilliseconds int Timeout in Milliseconds
Résultat uint

ReceiveAsync() public méthode

Receive a packet asynchronously
public ReceiveAsync ( SNIPacket &packet ) : uint
packet SNIPacket SNI packet
Résultat uint

SNITCPHandle() public méthode

Constructor
public SNITCPHandle ( string serverName, int port, long timerExpire, object callbackObject, bool parallel ) : System.IO
serverName string Server name
port int TCP port number
timerExpire long Connection timer expiration
callbackObject object Callback object
parallel bool
Résultat System.IO

Send() public méthode

Send a packet synchronously
public Send ( SNIPacket packet ) : uint
packet SNIPacket SNI packet
Résultat uint

SendAsync() public méthode

Send a packet asynchronously
public SendAsync ( SNIPacket packet, SNIAsyncCallback callback = null ) : uint
packet SNIPacket SNI packet
callback SNIAsyncCallback Completion callback
Résultat uint

SetAsyncCallbacks() public méthode

Set async callbacks
public SetAsyncCallbacks ( SNIAsyncCallback receiveCallback, SNIAsyncCallback sendCallback ) : void
receiveCallback SNIAsyncCallback Receive callback
sendCallback SNIAsyncCallback Send callback
Résultat void

SetBufferSize() public méthode

Set buffer size
public SetBufferSize ( int bufferSize ) : void
bufferSize int Buffer size
Résultat void