Dart.PowerTCP.SslSockets Namespace > Server Class > Server Constructor : Server Constructor() |
Initializes a new instance of the Server class.
[Visual Basic]
Public Function New()
[C#]
public Server();
[C++]
public: Server();
[C++/CLI]
public:
Server();
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 |
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();
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Server Class | Server Members | Overload List
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.