in reply to Re^2: perl recvmmsg syscall
in thread perl recvmmsg syscall
use Data::Dump qw/ dd pp /; $!=0; my $ret = syscall(&SYS_recvmmsg, fileno($srv), $msg, 1500,0,0); dd [ int($!)." $!", $ret ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: perl recvmmsg syscall
by Anonymous Monk on Apr 24, 2013 at 12:18 UTC | |
| [reply] |
|
Re^4: perl recvmmsg syscall
by hithim (Initiate) on Apr 24, 2013 at 12:21 UTC | |
| [reply] [d/l] [select] |
by Anonymous Monk on Apr 24, 2013 at 13:40 UTC | |
Well, there you go, it worked :) The return value of 47 seems to indicate 47 messages, and there appear 47 space characters inside $msg -- looks like it worked to me :) If the messages aren't supposed to be what you get, I'd check if using that syscall works using some ./recvmmsg c-program If it doesn't, you have your answer, the recvmmsg function is broken, upgrade if you can, or give up If it does, something goes wrong with perl syscall, so try Inline::C Good luck figuring it out :) | [reply] |