hithim has asked for the wisdom of the Perl Monks concerning the following question:
But get an error : Bad file descriptor at ./syscall_test2 line 12.#!/usr/bin/perl use strict; use Socket; use Data::Dumper; require("syscall.ph"); my $srv; socket($srv, PF_INET, SOCK_DGRAM, getprotobyname('udp')); bind ($srv, sockaddr_in('777', INADDR_ANY)) or die $!; my $msg = "\0" x 1500; syscall(&SYS_recvmmsg, $srv, $msg, 1500,0,0) == 0 or die $!; print Dumper $msg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl recvmmsg syscall
by Anonymous Monk on Apr 24, 2013 at 09:30 UTC | |
|
Re: perl recvmmsg syscall
by Anonymous Monk on Apr 24, 2013 at 09:32 UTC | |
by hithim (Initiate) on Apr 24, 2013 at 11:59 UTC | |
by Anonymous Monk on Apr 24, 2013 at 12:16 UTC | |
by Anonymous Monk on Apr 24, 2013 at 12:18 UTC | |
by hithim (Initiate) on Apr 24, 2013 at 12:21 UTC | |
by Anonymous Monk on Apr 24, 2013 at 13:40 UTC |