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 reply to Re^3: How to use Inline::C properly
by geekphilosopher
in thread How to use Inline::C properly
by macli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |