See Also

Tcp Class  | Tcp Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

container
The IContainer which contains the object.
See Also Languages PowerTCP Email Validation for .NET

Tcp Constructor(IContainer)

Dart.PowerTCP.EmailValidation Namespace > Tcp Class > Tcp Constructor : Tcp Constructor(IContainer)

Initializes a new instance of the Tcp class.

[Visual Basic]
Public Function New( _    ByVal container As IContainer _ )
[C#]
public Tcp(    IContainer container );
[C++]
public: Tcp(    IContainer* container )
[C++/CLI]
public: Tcp(    IContainer^ container )

Parameters

container
The IContainer which contains the object.

Remarks

Use this constructor to add the Tcp class to the IContainer container.

To create an instance of the Tcp component using Visual Studio.NET, simply add the Tcp component to the form and the object will automatically be created and initialized. If working out of the Visual Studio.NET environment (or using the Tcp component as a reference), the Tcp component will have to be explicitly created and initialized.

The following table shows initial property values for an instance of Tcp.

Property Initial Value
Tcp.Available 0
Tcp.Charset Default system charset (accessible via System.Text.Encoding.Default.BodyName)
Tcp.Connected false
Tcp.DoEvents true
Tcp.KeepAlive false
Tcp.LocalEndPoint reference to System.Net.IPEndPoint
Tcp.NoDelay false
Tcp.OutOfBandInline false
Tcp.Proxy reference to Dart.PowerTCP.Proxy
Tcp.ReceiveBufferSize 8192
Tcp.ReceiveTimeout 0
Tcp.RemoteEndPoint reference to System.Net.IPEndPoint
Tcp.ReuseAddress false
Tcp.SendBufferSize 8192
Tcp.SendTimeout 0
Tcp.Socket null
Tcp.State null
Tcp.Stream SegmentedStream object

Example

The following example demonstrates creating a Tcp object.

[Visual Basic] 

' Declare as class member
Friend WithEvents Tcp1 As Tcp

' Create in class initialization
Me.Tcp1 = New Tcp()

[C#] 


private Tcp tcp1 = new Tcp();         
                

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

See Also

Tcp Class  | Tcp Members  | Overload List


Send comments on this topic.

Documentation version 1.0.3.0.

© 2008 Dart Communications.  All rights reserved.