Свойство | Type | Description | |
---|---|---|---|
DefaultTrustedCertificatesPath | string |
Свойство | Type | Description | |
---|---|---|---|
ConnectAsync | void | ||
DefaultLocalCertificateSelectionCallback | |||
DumpPayloads | void | ||
LoadTrustedCertificates | void | ||
ProcessConnect | void | ||
ProcessIntegratedSecurityAuthentication | void | ||
ProcessReceivePayloadAware | void | ||
ProcessReceivePayloadUnaware | void | ||
ProcessSend | void | ||
ProcessTlsAuthentication | void | ||
ReceivePayloadAwareAsync | void | ||
ReceivePayloadUnawareAsync | void | ||
SendPayloadAsync | void | ||
TerminateConnection | void |
Méthode | Description | |
---|---|---|
ConnectAsync ( ) : |
Connects the TlsClient to the server asynchronously.
|
|
Disconnect ( ) : void |
When overridden in a derived class, disconnects client from the server synchronously.
|
|
LoadSettings ( ) : void |
Loads saved TlsClient settings from the config file if the ClientBase.PersistSettings property is set to true.
|
|
Read ( byte buffer, int startIndex, int length ) : int |
When overridden in a derived class, reads a number of bytes from the current received data buffer and writes those bytes into a byte array at the specified offset. This function should only be called from within the ClientBase.ReceiveData event handler. Calling this method outside this event will have unexpected results. |
|
SaveSettings ( ) : void |
Saves TlsClient settings to the config file if the ClientBase.PersistSettings property is set to true.
|
|
TlsClient ( ) : System |
Initializes a new instance of the TlsClient class.
|
|
TlsClient ( IContainer container ) : System |
Initializes a new instance of the TlsClient class.
|
|
TlsClient ( string connectString ) : System |
Initializes a new instance of the TlsClient class.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the TlsClient and optionally releases the managed resources.
|
|
OnReceiveDataException ( |
Raises the ClientBase.ReceiveDataException event.
|
|
OnReceiveDataException ( |
Raises the ClientBase.ReceiveDataException event.
|
|
OnSendDataException ( |
Raises the ClientBase.SendDataException event.
|
|
SendDataAsync ( byte data, int offset, int length ) : |
When overridden in a derived class, sends data to the server asynchronously.
|
|
ValidateConnectionString ( string connectionString ) : void |
When overridden in a derived class, validates the specified connectionString.
|
Méthode | Description | |
---|---|---|
ConnectAsync ( ConnectState connectState ) : void |
Initiates an asynchronous connection attempt.
|
|
DefaultLocalCertificateSelectionCallback ( object sender, string targetHost, |
Returns the certificate set by the user.
|
|
DumpPayloads ( ) : void |
Dumps payloads from the send queue when the send queue grows too large.
|
|
LoadTrustedCertificates ( ) : void |
Loads the list of trusted certificates into the default certificate checker.
|
|
ProcessConnect ( ConnectState connectState ) : void | ||
ProcessIntegratedSecurityAuthentication ( IAsyncResult asyncResult ) : void | ||
ProcessReceivePayloadAware ( IAsyncResult asyncResult ) : void |
Callback method for asynchronous receive operation of payload data in "payload-aware" mode.
|
|
ProcessReceivePayloadUnaware ( IAsyncResult asyncResult ) : void |
Callback method for asynchronous receive operation of payload data in "payload-unaware" mode.
|
|
ProcessSend ( IAsyncResult asyncResult ) : void |
Callback method for asynchronous send operation.
|
|
ProcessTlsAuthentication ( IAsyncResult asyncResult ) : void |
Callback method for asynchronous authenticate operation.
|
|
ReceivePayloadAwareAsync ( |
Initiate method for asynchronous receive operation of payload data in "payload-aware" mode.
|
|
ReceivePayloadUnawareAsync ( |
Initiate method for asynchronous receive operation of payload data in "payload-unaware" mode.
|
|
SendPayloadAsync ( SendState sendState ) : void |
Sends a payload on the socket.
|
|
TerminateConnection ( |
Processes the termination of client.
|
public ConnectAsync ( ) : |
||
Résultat |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Résultat | void |
protected OnReceiveDataException ( |
||
ex | Exception to send to |
|
Résultat | void |
protected OnReceiveDataException ( |
||
ex | Exception to send to |
|
Résultat | void |
protected OnSendDataException ( |
||
ex | Exception to send to |
|
Résultat | void |
public Read ( byte buffer, int startIndex, int length ) : int | ||
buffer | byte | Destination buffer used to hold copied bytes. |
startIndex | int | 0-based starting index into destination |
length | int | The number of bytes to read from current received data buffer and write into |
Résultat | int |
protected SendDataAsync ( byte data, int offset, int length ) : |
||
data | byte | The buffer that contains the binary data to be sent. |
offset | int | The zero-based position in the |
length | int | The number of bytes to be sent from |
Résultat |
public TlsClient ( IContainer container ) : System | ||
container | IContainer | |
Résultat | System |
public TlsClient ( string connectString ) : System | ||
connectString | string | Connect string of the |
Résultat | System |
protected ValidateConnectionString ( string connectionString ) : void | ||
connectionString | string | The connection string to be validated. |
Résultat | void |