InetReceiveData event (ILEADRasterInet)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

void InetReceiveData (short iComputer, ILEADRasterVariant*pData, long lSize, short iType);

Overview

Refer to Implementing Internet Functionality.

Remarks

Generated when data has been completely received over an open network connection.

This event is generated in response to a remote computer calling the InetSendData method.

This event occurs after the last chunk of data has been received and the InetReceiving event has been generated for the last chunk in the transfer.

Before you can receive data from a remote computer, you must have an open connection.

You can open a connection in two ways:

1) Setup the local computer as a server and listen for connections using the InetServerInit method. When connection requests are received, open the connection using the InetAcceptConnect method.

2) Connect to an existing server using the InetConnect method.

Events occur in this order:

- the InetReceiveStart event is generated once.

- the InetReceiving event is generated once for each chunk of data.

- the InetReceiveData event is generated when the last chunk of data has been received.

Note:

For Delphi, you must use the InetGetData method instead of the pData parameter. This method is only valid during the InetReceiveData event.

See Also

Elements:

InetServerInit method, InetConnect method, InetAcceptConnect method, InetAccept event, InetSendBitmap method, InetSendDIB method, InetSendData method, InetReceiveBitmap event, InetReceiveStart event, InetError event

Topics

Working with Internet Functionality: Sending and Receiving Data