PowerTCP Mail for .NET
TcpBase Class Members
Properties  Methods  Events


The following tables list the members exposed by TcpBase.

Public Properties
 NameDescription
Public PropertyCloseTime Returns the DateTime the connection was closed.  
Public PropertyConnectTime Returns the DateTime the connection was established.  
Public PropertyContainer (Inherited from System.ComponentModel.Component)
Public PropertyEncoding Character encoding used by the component. (Inherited from Dart.Mail.ComponentBase)
Public PropertyNetworkStreamReturns the NetworkStream object created when Connect() is called.  
Public PropertyRemoteEndPoint Gets the remote address and port of the connection.  
Public PropertySite (Inherited from System.ComponentModel.Component)
Public PropertySocket Gets the socket used by the component for communications. (Inherited from Dart.Mail.SocketBase)
Public PropertySocketOption Gets and sets the socket options for classes derived from TcpBase.  
Public PropertySslStreamReturns the SslStream object created when AuthenticateAsClient or AuthenticateAsServer are called.  
Public PropertyState Gets the status of the connection as of the last socket operation.  
Public PropertySynchronizingObject Gets or sets the object used to marshal data to the UI thread (for raising events). (Inherited from Dart.Mail.ComponentBase)
Public PropertySyncRoot Gets an object that is used to synchronize access to the upper layer protocol in use. (Inherited from Dart.Mail.ComponentBase)
Public PropertyTag Gets or sets an object that stores any user data. (Inherited from Dart.Mail.ComponentBase)
Top
Protected Properties
Public Methods
 NameDescription
Public MethodAbort Performs a hard close of the connection.  
Public MethodAuthenticateAsClientOverloaded.  Authenticates the server when establishing a secure connection.  
Public MethodClose Gracefully closes the connection.  
Public MethodConnectConnect to a server using the configuration specified by session.  
Public MethodConnectAsyncConnect to a server using the configuration specified by session.  
Public MethodCreateObjRef (Inherited from System.MarshalByRefObject)
Public MethodDisposeOverloaded. Overridden.  Disposes of TcpBase and its associated resources.  
Public MethodGetLifetimeService (Inherited from System.MarshalByRefObject)
Public MethodGetStream Provides access to the underlying Stream.  
Public MethodInitializeLifetimeService (Inherited from System.MarshalByRefObject)
Public MethodMarshalOverloaded.  Marshals data to the UI thread.  
Public MethodReadOverloaded.  Receives data from the remote host.  
Public MethodReadAsync Start an asynchronous read on the socket.  
Public MethodReadToCount Read until count bytes are read, an exception is thrown, or the connection is closed.  
Public MethodReadToDelimiterOverloaded.  Read until the delimiter is found, an exception is thrown, or the connection is closed.  
Public MethodReadToEnd Read until the connection is closed or an exception is thrown.  
Public MethodShutdownSsl Signals the remote host to shutdown the SSL connection.  
Public MethodToString (Inherited from System.ComponentModel.Component)
Public MethodWriteOverloaded.  Sends data to the remote host.  
Public MethodWriteAsync Start an asynchronous write on the socket.  
Top
Protected Methods
 NameDescription
Protected MethodFinalize (Inherited from System.ComponentModel.Component)
Protected MethodGetService (Inherited from System.ComponentModel.Component)
Protected MethodMemberwiseCloneOverloaded.  (Inherited from System.MarshalByRefObject)
Protected MethodOnDataRaises the Data event.  
Protected MethodOnErrorRaises the Error event. (Inherited from Dart.Mail.ComponentBase)
Protected MethodOnLogRaises the Log event.  
Protected MethodOnStateChangedRaises the StateChanged event.  
Protected MethodOnUserStateRaises the UserState event. (Inherited from Dart.Mail.ComponentBase)
Top
Public Events
 NameDescription
Public EventDataRaised when Marshal(Data,String,Object) is used.  
Public EventDisposed (Inherited from System.ComponentModel.Component)
Public EventErrorRaised when Marshal(Exception) is used or an unhandled Exception is thrown in a worker thread created using Start. (Inherited from Dart.Mail.ComponentBase)
Public EventLog Raised when data is read or written.  
Public EventStateChanged Raised when the value of the State property changes.  
Public EventUserStateRaised when Marshal(String,Object) is used. (Inherited from Dart.Mail.ComponentBase)
Top
See Also

Reference

TcpBase Class
Dart.Mail Namespace


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic