Client |
The ClientBase type exposes the following members.
| Name | Description | |
|---|---|---|
| ClientBase | Initializes a new instance of the ClientBase object. Sets ReceiveTimeout and SendTimeout to 30 sec. | |
| ClientBase(AddressFamily) | Initializes a new instance of the ClientBase object. Sets ReceiveTimeout and SendTimeout to 30 sec. |
| Name | Description | |
|---|---|---|
| Connected | Gets a value indicating whether the underlying Socket is connected to a remote host. This property makes a nonblocking, zero-byte Send call to determine the current state of the connection. | |
| InstanceId | Gets a randomly generated unique id that identifies this instance. | |
| IsCompressed | Gets a Boolean value that indicates whether communication to the remote server is compressed. You can turn compression on by using Compress method. | |
| IsEncrypted | Gets a Boolean value that indicates whether communication to the remote server is encrypted. | |
| IsMutuallyAuthenticated | Gets a Boolean value that indicates whether communication to the remote server is mutually authenticated. | |
| IsSigned | Gets a Boolean value that indicates whether communication to the remote server is signed. | |
| ReadStream | Gets underlying read stream for current connection. | |
| ReceiveTimeout | Gets or sets the amount of time the underlying Socket will wait to receive data once a read operation is initiated. | |
| SendTimeout | Gets or sets the amount of time the underlying Socket will wait for a send operation to complete successfully. | |
| Socket | Gets the underlying Socket. | |
| SSLConfiguration | Gets SSL/TLS configuration (client certificates, enabled SSL/TLS protocols). | |
| WriteStream | Gets underlying write stream for current connection. |
| Name | Description | |
|---|---|---|
| Attach(Socket) | Attaches client to specified connected socket. | |
| Attach(Socket, Boolean) | Attaches client to specified connected socket. | |
| AttachSSL | Attaches client to specified connected socket. | |
| BeginConnect(IPEndPoint, Boolean) | Begins an asynchronous request for a remote server connection. | |
| BeginConnect(String, Int32) | Begins an asynchronous request for a remote server connection. You can use BeginConnectSSL(String, Int32) when SSL/TLS connection is needed. | |
| BeginConnect(String, Int32, Boolean) | Begins an asynchronous request for a remote server connection. | |
| BeginConnect(String, Int32, Boolean, AsyncCallback) | Begins an asynchronous request for a remote server connection. | |
| BeginConnectSSL(String, Int32) | Begins an asynchronous request for a remote server secure connection using SSL/TLS. | |
| BeginConnectSSL(String, Int32, AsyncCallback) | Begins an asynchronous request for a remote server secure connection using SSL/TLS. | |
| Connect(IPEndPoint, Boolean) | Establishes connection to a remote server. | |
| Connect(String, Int32) | Establishes connection to a remote server. You can use ConnectSSL(String, Int32) when SSL/TLS connection is needed. | |
| Connect(IPAddress, Int32, Boolean) | Establishes connection to a remote server. | |
| Connect(String, Int32, Boolean) | Establishes connection to a remote server. | |
| ConnectAsync(IPEndPoint, Boolean, CancellationToken) | Establishes connection to a remote server. | |
| ConnectAsync(String, Int32, CancellationToken) | Establishes connection to a remote server. You can use ConnectSSL(String, Int32) when SSL/TLS connection is needed. | |
| ConnectAsync(IPAddress, Int32, Boolean, CancellationToken) | Establishes connection to a remote server. | |
| ConnectAsync(String, Int32, Boolean, CancellationToken) | Establishes connection to a remote server. | |
| ConnectSSL | Establishes connection to a remote server using SSL. | |
| ConnectSSLAsync | Establishes connection to a remote server using SSL. | |
| Dispose | Releases all resources acquired by this object. Closes connection, without issuing any quit commands. | |
| Dispose(Boolean) | Releases all resources acquired by this object. Closes connection, without issuing any quit commands. | |
| EndConnect | Ends a pending asynchronous connection request. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Send | Sends specified byte array to the server. | |
| SendAsync | Sends specified byte array to the server. | |
| TcpKeepAlive | Turns TCP protocol keep alive (SO_KEEPALIVE) option on. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| ServerCertificateValidate | Event which is called for custom server certificate validation. |