Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
L_InetAutoProcess
#include "l_bitmap.h"
#include "ltnet.h"
L_LTNET_API L_INT L_InetAutoProcess(hComputer, bProcess)
L_COMP hComputer; |
/* handle of remote computer */ |
L_BOOL bProcess; |
/* TRUE to auto process received data */ |
Enables or disables auto processing of received data for a computer.
Parameter |
Description |
hComputer |
Handle of the remote computer for which auto process should be enabled or disabled. |
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 INETCALLBACK function will be called with the INET_USER1_RECEIVED message and the data will be passed in pBuffer. If the header is recognized, the INETCALLBACK function will be called with the appropriate data format message and the data will be passed in pBuffer.
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 L_InetReadData in response to the INET_DATA_READY message in the INETCALLBACK function.
You must initialize the LEADTOOLS Peer-to-Peer DLL using L_InetStartUp 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: |
L_InetReadData, L_InetSendRawData, L_InetSendData, L_InetSendBitmap, L_InetSendSound, L_InetStartUp, L_InetShutDown |
Topics: |
Example
For an example, refer to L_InetReadData.