Void (*func_ptr)(packet*,void*) = &Proto::packer_handler;
Sniffer sniff("","eth0",func_ptr);
And I declared the member function as static
Yes, glad you figure it out... The problem is that member functions on c++ has an extra "this" pointer and that is not the signature of the function the Sniffer expects. You should declare it as static member function or use another function external to the class.
Best,
Esteban
--
You received this message because you are subscribed to the Google Groups "libcrafter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libcrafter+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.