InetServerInit method (ILEADRasterInet)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short InetServerInit (short iPort);

Overview

Refer to Implementing Internet Functionality.

Remarks

Initializes the computer as a server.

This will allow other computers to connect to the server and transfer data.

Calling this method sets up iPort to listen for connection requests from remote computers.

Connection requests will be received in the InetAccept event, and can be accepted using the InetAcceptConnect method.

The InetServerInit method must be called by the host computer before other computers can connect using the InetConnect method.

To shut down the server, call the InetServerClose method.

Note:

The ConnectList property contains handles to all computers that are connected, regardless of the server which accepted the connection. If you wish to keep up with connections on a per server basis, you should use one control per server.

Call InetServerHandle property after this method to get the handle of the initialized server.

See Also

Elements:

InetConnect method, InetServerClose method, InetAccept event, InetAcceptConnect method, InetError event, InetDisconnect method, InetServerHandle property

Topics

Working with Internet Functionality: Network Connections