Date: Thu, 18 Nov 1999 14:42:38 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: James Bailie <jazzturk@home.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Perl socketpair() failing Message-ID: <20237.942928958@axl.noc.iafrica.com> In-Reply-To: Your message of "Thu, 18 Nov 1999 06:50:47 EST." <19991118065047.A1636@cr31617-a.lndn1.on.wave.home.co>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Nov 1999 06:50:47 EST, James Bailie wrote: > use Socket; > > unless( socketpair ONE, TWO, AF_LOCAL, SOCK_STREAM, 0 ) > { > die "socketpair: $!\n"; > } I get this with perl -w: Argument "AF_LOCAL" isn't numeric in sockpair at foo.pl line 5. socketpair: Protocol not supported Always use -w when you're having problems. :-) Now take a look at the perlipc manpage and you'll see that it suggests the use of AF_UNIX instead of AF_LOCAL. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20237.942928958>