LInet::OnDataStart
#include "ltwrappr.h"
L_INT LInet::OnDataStart(plConnection, nError)
/* instance of a remote computer */ | |
L_INT nError; |
/* error code */ |
Overridable function that notifies the computer that it has started to receive data.
Parameter |
Description |
plConnection |
Pointer to the instance of the remote computer that is sending the data. |
nError |
If no error has occurred, nError will be SUCCESS. If nError is < SUCCESS, an error has occurred. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Do not delete plConnection.
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: |
|
Topics: |
Example
// a user defined class derived from LInet should be used to support the OnDataStart callback function
// suppose it was named as LUserInet
LUserInet UserInet;
LInet L_FAR *plRemote;
// connect to LEAD
UserInet.Connect("207.238.49.190", 1000);
L_INT LUserInet::OnDataStart(LInet L_FAR plConnection, L_INT nError)
{
// other operations
return SUCCESS;
}