Dart.PowerTCP.SslSockets 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
)
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 |
---|---|
Available | 0 |
Charset | Default system charset (accessible via System.Text.Encoding.Default.BodyName) |
Connected | false |
DoEvents | true |
KeepAlive | false |
LocalEndPoint | reference to System.Net.IPEndPoint |
NoDelay | false |
OutOfBandInline | false |
Proxy | reference to Dart.PowerTCP.Proxy |
ReceiveBufferSize | 8192 |
ReceiveTimeout | 0 |
RemoteEndPoint | reference to System.Net.IPEndPoint |
ReuseAddress | false |
SendBufferSize | 8192 |
SendTimeout | 0 |
Socket | null |
Tcp.State | null |
Stream | SegmentedStream object |
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();
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Tcp Class | Tcp Members | Overload List
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.