Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: How to use Inline::C properlyby geekphilosopher (Friar) |
on Mar 07, 2007 at 02:48 UTC ( [id://603555]=note: print w/replies, xml ) | Need Help?? |
Why expose yourself to these Perl internals if you don't need to (besides instructional reasons)? int p0fq(SV* name1, ...)is a bit of a messy signature (since you have to manually pull things off the stack later. Why not try int p0fq(char* socket, char* src_ip, int src_port, char * dst_ip, int dst_port)Inline will handle the ugly glue for you :) UPDATE change char* dst_port to int dst_port. Thanks to Util for catching that.
In Section
Seekers of Perl Wisdom
|
|