InetSendData2 method (ILEADRasterInet)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short InetSendData2 (VARIANT *pData, long lSize, short iType);

Overview

Refer to Implementing Internet Functionality.

Remarks

Sends the specified number of bytes to all the remote computers in the SendList and generates an InetReceiveData2 event on the remote computer(s).

Fill pData with the data you wish to send before calling this method. The data should be specified in a byte array.

Before you can send data to 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.

See Also

Elements:

InetServerInit method, InetConnect method, InetAcceptConnect method, InetAccept event, InetSendBitmap method, InetSendDIB method, InetReceiveBitmap event, InetReceiveData2 event, InetReceiveStart event, InetError event, SendList property, InetSendSound2 method, InetReceiveSound2 event, InetReceiving event

Topics

Working with Internet Functionality: Sending and Receiving Data