InetReceiveBitmap event (ILEADRasterInet)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

void InetReceiveBitmap (short iComputer, long hBitmap);

Overview

Refer to Implementing Internet Functionality.

Remarks

Generated when an image file has been received over an open network connection.

This event is generated in response to a remote computer calling the InetSendBitmap or InetSendDib methods.

hBitmap should be copied to an ILEADRaster object to save the data. It will be freed after this event returns.

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:

- InetReceiveStart event is generated once.

- InetReceiveBitmap event is generated when the image is completely received.

See Also

Elements:

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

Topics

Working with Internet Functionality: Sending and Receiving Data