Click or drag to resize

TcpTextClient Class

Implements TCP/IP text client.
Inheritance Hierarchy
SystemObject
  Limilabs.FTP.ClientTcpTextClient
    Limilabs.FTP.ClientFtp

Namespace: Limilabs.FTP.Client
Assembly: Ftp (in Ftp.dll) Version: 2.0.26109.1248
Syntax
public class TcpTextClient : IDisposable

The TcpTextClient type exposes the following members.

Constructors
 NameDescription
Public methodTcpTextClient Initializes a new instance of the TcpTextClient object. Sets ReceiveTimeout and SendTimeout to 20 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 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 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 configuration for this object (client certificates, enabled SSL protocols).
Public propertyStream Gets underlying read stream for current connection.
Top
Methods
 NameDescription
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 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.
Public methodBeginConnectSSL(String, Int32, AsyncCallback) Begins an asynchronous request for a remote server secure connection using SSL.
Public methodConnect(IPEndPoint, Boolean) Connects to server.
Public methodConnect(String, Int32) Connects to server. Use ConnectSSL(String, Int32) when SSL connection is needed.
Public methodConnect(IPAddress, Int32, Boolean) Connects to server.
Public methodConnect(String, Int32, Boolean) Connects to server.
Public methodConnectSSL Connects to 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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetServerGreeting Override this function to get server's greeting.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodKeepAliveTcp Sets TCP protocol keep alive (SO_KEEPALIVE) option on.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSend Sends the text command to server. Adds "\r\n" to the command.
Public methodToStringReturns 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