L_InetGetCallback

#include "l_bitmap.h"
#include "ltnet.h"

L_INT EXT_FUNCTION L_InetGetCallback(hComputer, ppfnCallback, ppUserData)

L_COMP hComputer;

/* computer to get the callback data from */

INETCALLBACK L_FAR * ppfnCallback;

/* address of variable */

L_VOID L_FAR * L_FAR * ppUserData;

/* address of variable */

Gets a pointer to the current callback associated with the specified computer.

Parameter

Description

hComputer

Computer handle for which to retrieve the callback data.

ppfnCallback

Address of a variable to be updated with a pointer to the INETCALLBACK function associated with hComputer.

ppUserData

Address of the variable to be updated with the user defined data associated with the callback function.

Returns

SUCCESS

This function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function, together with L_InetSetCallback, can be used to change user defined data associated with a computer handle.

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_InetServerInit, L_InetAcceptConnect, L_InetConnect, L_InetSetCallback

Topics:

Sending Commands and Responses

 

A Client-Server Diagram: Sending Commands and Responses

Example

L_VOID SetNewCallbackData(L_COMP hComputer, L_VOID L_FAR*pData)
{
   INETCALLBACK pfnCallback;
   L_VOID L_FAR* pUserData;

   L_InetGetCallback (hComputer, &pfnCallback, &pUserData);
   if(pData != pUserData)
      L_InetSetCallback(hComputer, pfnCallback, pData);
}