tf6RegisterRouterSolCB

Jump to: navigation, search

Table of Contents >> Optional Protocols


#include <trsocket.h>


int tf6RegisterRouterSolCB (
ttUserInterface interfaceHandle,
tt6UserRouterDiscCBFuncPtr userFuncPtr
);


Function Description

Call this function to register an application function to be called each time a Router Solicitation message is received on the specified interface. You might use this feature if your application were to offer some custom router services.


Parameters

  • interfaceHandle
    The device handle returned by tfAddInterface().
  • userFuncPtr
    The function to be called for each Router Solicitation message received (click here for function prototype). Specify a NULL pointer to deregister your function.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid interface handle.


Table of Contents >> Optional Protocols