IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


void RegisterIPCbHandler_Recv ( void *  ipUserCbFuncPtr  ) 

Register an IP User callback handler.

Parameters:
[in] ipUserCbFuncPtr Pointer to user's callback function.
Returns:
always 0
Note:
This function allows the application programmer to install an ip packet callback function.
The application programmer can implement a function fitting the following type definition:
 typedef int (*IPUserCbFuncPtr)(IpCallbackUserInfo *ipInfo );

If a function of this type is installed by the user, the TCP/IP stack will call this function at any incoming IP packet. Inside of this function the user is able to check the given IP parameters and decide if the TCP/IP stack should process this packet or ignore it. If the callback function returns -1 the incoming packet will be ignored by the TCP/IP stack.
To uninstall the callback function, this API call must be called with a null pointer.
The function will be automatically uninstalled, if the application exits!
Since:
SC2x3 V1.00 - CLIB V1.00





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:39 2017 by Doxygen 1.6.1