Implementing Internet Functionality

The LEADTOOLS Internet Features provide functionality that allows you to create client server applications that transfer data over the Internet or local intranets. All of the LEADTOOLS Internet functions require that a network connection be established. You can connect to a remote computer using the InetConnect method. This generates an InetAccept event on the remote computer, indicating that a computer requests a connection. You can setup a local computer to act as a server and listen for incoming connection requests using the InetServerInit method. If your application is acting as a server, it can accept connection requests using the InetAcceptConnect method. This generates an InetConnected event. A list of the connected computers is maintained in the ConnectList property and the number of connected computers is maintained in the ConnectListNum property. You can determine the name of the host computer using the InetGetHostName method.

While a network connection is open, you can:

1. transfer data and sound between local and remote computers.

2. Internet only. send commands and responses between a local and a remote computer.

To disconnect a remote computer, call InetDisconnect method. This generates an InetDisconnected event on the remote computer. To shutdown a server started with InetServerInit method, call InetServerClose method.