TlsClientSocket Class
Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9119)
Represents a client-side TLS-enabled TCP socket.
Syntax
public class TlsClientSocket : TlsSocket, ISocketExt, ISocket, IDisposable, IAsyncDisposable
Inherited Members
Remarks
This class is suitable for securing your socket communication using TLS 1.3, TLS 1.2, TLS 1.1 and TLS 1.0 protocols.
Constructors
Name | Description |
---|---|
TlsClientSocket() | Initializes an instance of the TlsClientSocket class. |
TlsClientSocket(Socket) | Initializes an instance of the TlsClientSocket class with the specified base socket. |
Properties
Name | Description |
---|---|
ApplicationProtocol | Gets the negotiated application protocol; or null reference if no protocol was negotiated. Inherited from TlsSocket. |
Available | Gets the amount of data that has been received from the network and is available to be read. Inherited from TlsSocket. |
Cipher | Gets the active cipher. Inherited from TlsSocket. |
ClientCertificate | Gets the client's certificate chain. Inherited from TlsSocket. |
CompressionMethod | Gets the active data compression method. Inherited from TlsSocket. |
Connected | Gets a value indicating whether a TlsSocket is connected to a remote resource. Inherited from TlsSocket. |
Context | Gets or sets a custom context object associated with this TlsSocket. Inherited from TlsSocket. |
Entity | Gets the entity. Inherited from TlsSocket. |
Factory | Gets the instance of ISocketFactory that created this ISocket. Inherited from TlsSocket. |
Information | Gets socket information on the underlying socket object. Inherited from TlsSocket. |
IsSecure | Gets the current security state of the connection. Inherited from TlsSocket. |
LocalEndPoint | Gets the local endpoint. Inherited from TlsSocket. |
LogWriter | Gets or sets the logger used by this object. Inherited from TlsSocket. |
Parameters | Gets or sets the security parameters of the current socket. Inherited from TlsSocket. |
RemoteEndPoint | Gets the remote endpoint. Inherited from TlsSocket. |
ServerCertificate | Gets the server's certificate chain. Inherited from TlsSocket. |
Session | Gets the connection session Inherited from TlsSocket. |
Socket | Gets the internal Socket value (only for sockets based on Socket or ProxySocket, otherwise null is returned). Inherited from TlsSocket. |
Timeout | Gets or sets the length of time, in milliseconds, until the operation times out, or the value -1 or 0 to indicate that the operation does not time out. Inherited from TlsSocket. |
Methods
Name | Description |
---|---|
BeginConnect(EndPoint, AsyncCallback, Object) | Establishes a connection to a remote device. |
BeginConnect(String, Int32, AsyncCallback, Object) | Establishes a connection to a remote device. |
BeginNegotiate(AsyncCallback, Object) | Negotiates TLS/SSL cipher. Inherited from TlsSocket. |
BeginReceive(Byte[], Int32, Int32, SocketFlags, AsyncCallback, Object) | Ends a pending asynchronous read. Inherited from TlsSocket. |
BeginSend(Byte[], Int32, Int32, SocketFlags, AsyncCallback, Object) | Sends data asynchronously to a connected ISocket. Inherited from TlsSocket. |
Close() | Forces a TlsSocket connection to close. Inherited from TlsSocket. |
CloseAsync() | Asynchronously releases resources used by the TlsSocket. Inherited from TlsSocket. |
Connect(EndPoint) | Establishes a connection to a remote device. |
Connect(String, Int32) | Establishes a connection to a remote device. |
ConnectAsync(EndPoint) | Establishes a connection to a remote device. |
ConnectAsync(String, Int32) | Establishes a connection to a remote device. |
Dispose() | Disposes the object. Inherited from TlsSocket. |
Dispose(Boolean) | Releases the unmanaged resources used by the TlsSocket and optionally releases the managed resources. Inherited from TlsSocket. |
DisposeAsync() | Asynchronously releases resources used by the TlsSocket. Inherited from TlsSocket. |
DisposeAsync(Boolean) | Asynchronously releases the unmanaged resources used by the TlsSocket and optionally releases the managed resources. Inherited from TlsSocket. |
EndConnect(IAsyncResult) | Ends a pending asynchronous connection request. |
EndNegotiate(IAsyncResult) | Ends a pending asynchronous negotiation. Inherited from TlsSocket. |
EndReceive(IAsyncResult) | Ends a pending asynchronous read. Inherited from TlsSocket. |
EndSend(IAsyncResult) | Ends a pending asynchronous send. Inherited from TlsSocket. |
GetChannelBinding(ChannelBindingType) | Gets an instance of the ChannelBinding that matches the |
GetConnectionState() | Gets a value that indicates whether the SocketState is currently connected to a remote host. Inherited from TlsSocket. |
GetHashCode() | Gets a hash code of this object. Inherited from TlsSocket. |
HasChannelBinding(ChannelBindingType) | Gets an indication whether a provider has a ChannelBinding that matches the |
Negotiate() | Negotiates TLS/SSL cipher. Inherited from TlsSocket. |
NegotiateAsync() | Negotiates TLS/SSL cipher. Inherited from TlsSocket. |
Poll(Int32, SocketSelectMode) | Determines the status of the socket. Inherited from TlsSocket. |
Receive(ArraySegment<Byte>) | Receives data from a connected TlsSocket. Inherited from TlsSocket. |
Receive(Byte[]) | Receives data from a connected TlsSocket. Inherited from TlsSocket. |
Receive(Byte[], Int32, Int32) | Receives the specified amount of data from a connected TlsSocket into a specific location of the receive buffer and using the supplied flags. Inherited from TlsSocket. |
Receive(Byte[], Int32, Int32, SocketFlags) | Receives the specified amount of data from a connected TlsSocket into a specific location of the receive buffer and using the supplied flags. Inherited from TlsSocket. |
Receive(Byte[], Int32, SocketFlags) | Receives the specified amount of data from a connected TlsSocket using the supplied flags. Inherited from TlsSocket. |
Receive(Byte[], SocketFlags) | Receives data from a connected TlsSocket using the supplied flags. Inherited from TlsSocket. |
ReceiveAsync(ArraySegment<Byte>) | Receives data from a connected TlsSocket. Inherited from TlsSocket. |
Renegotiate() | Renegotiates TLS/SSL cipher (if allowed by the other side). Only supported by TLS 1.2 or earlier. Inherited from TlsSocket. |
Send(ArraySegment<Byte>) | Sends data to a connected TlsSocket. Inherited from TlsSocket. |
Send(Byte[]) | Sends data to a connected TlsSocket. Inherited from TlsSocket. |
Send(Byte[], Int32, Int32) | Sends the specified amount of data to a connected TlsSocket starting at the indicated location in the data and using the supplied flags.| Inherited from TlsSocket. |
Send(Byte[], Int32, Int32, SocketFlags) | Sends the specified amount of data to a connected TlsSocket starting at the indicated location in the data and using the supplied flags. Inherited from TlsSocket. |
Send(Byte[], Int32, SocketFlags) | Sends the specified amount of data to a connected TlsSocket using the supplied flags. Inherited from TlsSocket. |
Send(Byte[], SocketFlags) | Sends data to a connected TlsSocket using the supplied flags. Inherited from TlsSocket. |
SendAsync(ArraySegment<Byte>) | Sends data to a connected TlsSocket. Inherited from TlsSocket. |
Shutdown(SocketShutdown) | Disables sends and receives on a TlsSocket. Inherited from TlsSocket. |
ShutdownAsync() | |
ToString() | Returns a string representation of the current TlsSocket. Inherited from TlsSocket. |
Unprotect() | Reverts back to an unencrypted socket. Usage of this method is strongly discouraged. Inherited from TlsSocket. |
Events
Name | Description |
---|---|
ValidatingCertificate | Occurs when a server certificate needs to be validated. |
Explicit Interface Implementations
Name | Description |
---|---|
IAsyncDisposable.DisposeAsync() | Asynchronously releases resources used by the TlsSocket. Inherited from TlsSocket. |