LInet::EnableAutoProcess

#include "ltwrappr.h"

L_INT LInet::EnableAutoProcess(bProcess=TRUE)

L_BOOL bProcess;

/* TRUE to auto process received data */

Enables or disables auto processing of received data for a computer.

Parameter

Description

bProcess

Flag that controls auto processing. Set bProcess to TRUE to enable auto process of received data, or FALSE to disable it.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

If auto process is enabled when data is received, that data will be checked for LEADTOOLS' headers. If no header is recognized, the data will be treated as user defined data, and the OnUser1Received function will be called.

If auto process is disabled when data is received, that data will not be checked for LEADTOOLS' headers. In this case, you must read the data using LInet::ReadData and OnDataReady.

You must initialize the LEADTOOLS Internet DLL using LInet::StartUp before calling this function.

Required DLLs and Libraries

LTNET

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LInet::ReadData, LInet::SendRawData, LInet::SendData, LInet::SendBitmap, LInet::SendSound, LInet::StartUp, LInet::ShutDown, LInet::OnDataReady, Class Members

Example

For an example, refer to LInet::ReadData.