See Also

Server Class  | Server Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

container
See Also Languages PowerTCP SSL Sockets for .NET

Server Constructor(IContainer)

Dart.PowerTCP.SslSockets Namespace > Server Class > Server Constructor : Server Constructor(IContainer)

Initializes a new instance of the Server class.

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

Parameters

container

Remarks

The default constructor initializes a new Server class.

To create an instance of the Server component using Visual Studio.NET, simply add the Server 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 Server 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 Server.

Property Initial Value
Active false
Connections ArrayList {count = 0}
LocalEndPoint System.Net.IPEndPoint
Socket null (Initialized upon Listen)
Tag null

Example

The following example demonstrates creating a Server object.

[Visual Basic] 

' Declare as class member
Friend WithEvents Server1 As Server

' Create in class initialization
Me.Server1 = New Server()

[C#] 


private Server server1 = new Server();         
                

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Server Class  | Server Members  | Overload List


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.