From owner-freebsd-questions Thu Nov 18 4:42:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 96CA11503C for ; Thu, 18 Nov 1999 04:42:47 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.040 #1) id 11oQta-0005GQ-00; Thu, 18 Nov 1999 14:42:38 +0200 From: Sheldon Hearn To: James Bailie Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Perl socketpair() failing In-reply-to: Your message of "Thu, 18 Nov 1999 06:50:47 EST." <19991118065047.A1636@cr31617-a.lndn1.on.wave.home.co> Date: Thu, 18 Nov 1999 14:42:38 +0200 Message-ID: <20237.942928958@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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