Click or drag to resize

ClientBase Class

Implements TCP/IP text client.
Inheritance Hierarchy

Namespace:  Limilabs.Client
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
public abstract class ClientBase : IDisposable

The ClientBase type exposes the following members.

Constructors
  NameDescription
Protected methodClientBase
Initializes a new instance of the ClientBase object. Sets ReceiveTimeout and SendTimeout to 30 sec.
Protected methodClientBase(AddressFamily)
Initializes a new instance of the ClientBase object. Sets ReceiveTimeout and SendTimeout to 30 sec.
Top
Properties
  NameDescription
Public propertyConnected
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.
Public propertyInstanceId
Gets a randomly generated unique id that identifies this instance.
Public propertyIsCompressed
Gets a Boolean value that indicates whether communication to the remote server is compressed. You can turn compression on by using Compress method.
Public propertyIsEncrypted
Gets a Boolean value that indicates whether communication to the remote server is encrypted.
Public propertyIsMutuallyAuthenticated
Gets a Boolean value that indicates whether communication to the remote server is mutually authenticated.
Public propertyIsSigned
Gets a Boolean value that indicates whether communication to the remote server is signed.
Public propertyReadStream
Gets underlying read stream for current connection.
Public propertyReceiveTimeout
Gets or sets the amount of time the underlying Socket will wait to receive data once a read operation is initiated.
Public propertySendTimeout
Gets or sets the amount of time the underlying Socket will wait for a send operation to complete successfully.
Public propertySocket
Gets the underlying Socket.
Public propertySSLConfiguration
Gets SSL/TLS configuration (client certificates, enabled SSL/TLS protocols).
Public propertyWriteStream
Gets underlying write stream for current connection.
Top
Methods
  NameDescription
Public methodAttach(Socket)
Attaches client to specified connected socket.
Public methodAttach(Socket, Boolean)
Attaches client to specified connected socket.
Public methodAttachSSL
Attaches client to specified connected socket.
Public methodBeginConnect(IPEndPoint, Boolean)
Begins an asynchronous request for a remote server connection.
Public methodBeginConnect(String, Int32)
Begins an asynchronous request for a remote server connection. You can use BeginConnectSSL(String, Int32) when SSL/TLS connection is needed.
Public methodBeginConnect(String, Int32, Boolean)
Begins an asynchronous request for a remote server connection.
Public methodBeginConnect(String, Int32, Boolean, AsyncCallback)
Begins an asynchronous request for a remote server connection.
Public methodBeginConnectSSL(String, Int32)
Begins an asynchronous request for a remote server secure connection using SSL/TLS.
Public methodBeginConnectSSL(String, Int32, AsyncCallback)
Begins an asynchronous request for a remote server secure connection using SSL/TLS.
Public methodConnect(IPEndPoint, Boolean)
Establishes connection to a remote server.
Public methodConnect(String, Int32)
Establishes connection to a remote server. You can use ConnectSSL(String, Int32) when SSL/TLS connection is needed.
Public methodConnect(IPAddress, Int32, Boolean)
Establishes connection to a remote server.
Public methodConnect(String, Int32, Boolean)
Establishes connection to a remote server.
Public methodConnectAsync(IPEndPoint, Boolean)
Establishes connection to a remote server.
Public methodConnectAsync(String, Int32)
Establishes connection to a remote server. You can use ConnectSSL(String, Int32) when SSL/TLS connection is needed.
Public methodConnectAsync(IPAddress, Int32, Boolean)
Establishes connection to a remote server.
Public methodConnectAsync(String, Int32, Boolean)
Establishes connection to a remote server.
Public methodConnectSSL
Establishes connection to a remote server using SSL.
Public methodConnectSSLAsync
Establishes connection to a remote server using SSL.
Public methodDispose
Releases all resources acquired by this object. Closes connection, without issuing any quit commands.
Protected methodDispose(Boolean)
Releases all resources acquired by this object. Closes connection, without issuing any quit commands.
Public methodEndConnect
Ends a pending asynchronous connection request.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSend
Sends specified byte array to the server.
Public methodSendAsync
Sends specified byte array to the server.
Public methodTcpKeepAlive
Turns TCP protocol keep alive (SO_KEEPALIVE) option on.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventServerCertificateValidate
Event which is called for custom server certificate validation.
Top
See Also