< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate-users] AfterSocketCreationFuncPtr and tos


Hi all,
as read in past mailing list entries i was trying to use the aforementioned function pointer to set TOS / DSCP  values on SIP packets.
While this works in a simple scenario, i found that the function pointer prototype is missing the somewhat "classic" void* to pass some data to the callback function.

i.e. if i want to use a parametric tos value (e.g. user-provided at run-time) how could i do that?

for the time being i used a template hack to create all possible marking functions then i pass the "right" one to SipStack ctor, however i'd like to know if there's a saner way to do that.

regards