in reply to Re^2: How to use Inline::C properly
in thread How to use Inline::C properly
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to use Inline::C properly
by macli (Beadle) on Mar 07, 2007 at 18:56 UTC | |
by samtregar (Abbot) on Mar 09, 2007 at 17:48 UTC |