Start listening for client connections.
A boolean value which specifies if the server has been started. A return value of true specifies that the operation was successful. If an error occurs, the method returns false and the application should check the value of the LastError property to determine the cause of the failure.
The Start method begins listening for client connections on the default local address and port number. The server is started in its own thread and manages the client sessions independently of the calling thread.
The value of the Backlog property will determine the default size of the queue for incoming client connections. The value of the MaxClients property will determine the maximum number of clients that may connect to the server. The value of the Options property will determine the default options used when starting the server. The value of the ServerAddress and ServerPort properties will determine the address and port number that the server will accept client connections on. The value of the Timeout property will determine the default timeout period.
The following example demonstrates creating an instance of the InternetServer class object and starting a server using the Start method.
[Visual Basic]
Dim Server As SocketTools.InternetServer
Server = New SocketTools.InternetServer
Server.ServerAddress = TextBox1.Text.Trim()
Server.ServerPort = Val(TextBox2.Text)
If Server.Start() Then
StatusBar1.Text = "The server has started listening for connections"
Else
StatusBar1.Text = "The server could not be started"
End If