TlsServerSocket Class
Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9147)
Represents a server-side TLS-enabled TCP socket.
Syntax
public class TlsServerSocket : 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 |
---|---|
Tls |
Initializes an instance of the Tls |
Properties
Name | Description |
---|---|
Application |
Gets the negotiated application protocol;
or null reference if no protocol was negotiated.
Inherited from Tls |
Available | Gets the amount of data that has been received from the network and is available to be read.
Inherited from Tls |
Cipher | Gets the active cipher.
Inherited from Tls |
Client |
Gets the client's certificate chain.
Inherited from Tls |
Compression |
Gets the active data compression method.
Inherited from Tls |
Connected | Gets a value indicating whether a Tls |
Context | Gets or sets a custom context object associated with this Tls |
Entity | Gets the entity.
Inherited from Tls |
Factory | Gets the instance of ISocket |
Information | Gets socket information on the underlying socket object.
Inherited from Tls |
Is |
Gets the current security state of the connection.
Inherited from Tls |
Local |
Gets the local endpoint.
Inherited from Tls |
Log |
Gets or sets the logger used by this object.
Inherited from Tls |
Parameters | Gets or sets the security parameters of the current socket.
Inherited from Tls |
Remote |
Gets the remote endpoint.
Inherited from Tls |
Server |
Gets the server's certificate chain.
Inherited from Tls |
Session | Gets the connection session
Inherited from Tls |
Socket | Gets the internal Socket value (only for sockets based on Socket or ProxySocket, otherwise null is returned).
Inherited from Tls |
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 Tls |
Methods
Name | Description |
---|---|
Begin |
Begins an asynchronous request for a connection to a network device.
Inherited from Tls |
Begin |
Begins an asynchronous request for a connection to a network device.
Inherited from Tls |
Begin |
Negotiates TLS/SSL cipher.
Inherited from Tls |
Begin |
Ends a pending asynchronous read.
Inherited from Tls |
Begin |
Sends data asynchronously to a connected ISocket.
Inherited from Tls |
Close() | Forces a Tls |
Close |
Asynchronously releases resources used by the Tls |
Connect(End |
Establishes a connection to a remote device.
Inherited from Tls |
Connect(String, Int32) | Establishes a connection to a remote device.
Inherited from Tls |
Dispose() | Disposes the object.
Inherited from Tls |
Dispose(Boolean) | Releases the unmanaged resources used by the Tls |
Dispose |
Asynchronously releases resources used by the Tls |
Dispose |
Asynchronously releases the unmanaged resources used by the Tls |
End |
Ends a pending asynchronous connection request.
Inherited from Tls |
End |
Ends a pending asynchronous negotiation.
Inherited from Tls |
End |
Ends a pending asynchronous read.
Inherited from Tls |
End |
Ends a pending asynchronous send.
Inherited from Tls |
Get |
Gets an instance of the Channel |
Get |
Gets a value that indicates whether the Socket |
Get |
Gets a hash code of this object.
Inherited from Tls |
Has |
Gets an indication whether a provider has a Channel |
Negotiate() | Negotiates TLS/SSL cipher.
Inherited from Tls |
Negotiate |
Negotiates TLS/SSL cipher.
Inherited from Tls |
Poll(Int32, Socket |
Determines the status of the socket.
Inherited from Tls |
Receive(ArraySegment<Byte>) | Receives data from a connected Tls |
Receive(Byte[]) | Receives data from a connected Tls |
Receive(Byte[], Int32, Int32) | Receives the specified amount of data from a connected Tls |
Receive(Byte[], Int32, Int32, Socket |
Receives the specified amount of data from a connected Tls |
Receive(Byte[], Int32, Socket |
Receives the specified amount of data from a connected Tls |
Receive(Byte[], Socket |
Receives data from a connected Tls |
ReceiveAsync(ArraySegment<Byte>) | Receives data from a connected Tls |
Renegotiate() | Renegotiates TLS/SSL cipher (if allowed by the other side). Only supported by TLS 1.2 or earlier.
Inherited from Tls |
Send(ArraySegment<Byte>) | Sends data to a connected Tls |
Send(Byte[]) | Sends data to a connected Tls |
Send(Byte[], Int32, Int32) | Sends the specified amount of data to a connected Tls |
Send(Byte[], Int32, Int32, Socket |
Sends the specified amount of data to a connected Tls |
Send(Byte[], Int32, Socket |
Sends the specified amount of data to a connected Tls |
Send(Byte[], Socket |
Sends data to a connected Tls |
SendAsync(ArraySegment<Byte>) | Sends data to a connected Tls |
Shutdown(Socket |
Disables sends and receives on a Tls |
Shutdown |
|
To |
Returns a string representation of the current Tls |
Unprotect() | Reverts back to an unencrypted socket. Usage of this method is strongly discouraged.
Inherited from Tls |
Events
Name | Description |
---|---|
Client |
Occurs when a TLS ClientHello has been received. |
Validating |
Occurs when a client certificate needs to be validated. |
Explicit Interface Implementations
Name | Description |
---|---|
IAsync |
Asynchronously releases resources used by the Tls |