InetConnect method (ILEADRasterInet)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short InetConnect (BSTR pszComputer, short iPort);

Overview

Refer to Implementing Internet Functionality.

Remarks

Connects to a remote computer on the specified port.

This method will generate an InetAccept event on the host computer, if the server was initialized using the Internet Control.

After establishing a connection to a remote computer, you can then send data to the remote computer using the InetSendBitmap, InetSendDIB, InetSendSound, and InetSendData methods and receive data using the InetReceiveBitmap, InetReceiveData InetReceiveSound, and InetReceiveStart events.

To setup a computer as a server, you must call the InetServerInit method on the host computer.

You can disconnect from a host computer by using the InetDisconnect method.

See Also

Elements:

InetServerInit method, InetSendBitmap method, InetSendDIB method, InetSendData method, InetReceiveBitmap event, InetReceiveData event, InetReceiveStart event, InetAccept event, InetError event, InetDisconnect method, ConnectList property

Topics

Working with Internet Functionality: Network Connections