From owner-freebsd-net Sat Mar 3 8:33:10 2001 Delivered-To: freebsd-net@freebsd.org Received: from homer.softweyr.com (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id CC7D137B71E for ; Sat, 3 Mar 2001 08:33:06 -0800 (PST) (envelope-from wes@softweyr.com) Received: from [127.0.0.1] (helo=softweyr.com ident=Fools trust ident!) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 14ZF8c-0000L1-00; Sat, 03 Mar 2001 09:44:11 -0700 Message-ID: <3AA11F5A.E398BCB@softweyr.com> Date: Sat, 03 Mar 2001 09:44:10 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Graehl Cc: Freebsd-Net Subject: Re: Deamon with perl References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jonathan Graehl wrote: > > > > $local_socket = sockaddr_in($port, inet_aton(INADDR_ANY) ); > > > > > > to > > > > > > $local_socket = sockaddr_in($port,INADDR_ANY ); > > > > > > now is working fine on FBSD 3.x. > > > > Ah. Ick. Perl. Bleh. > > He'd have the same problem in C (except that the compiler would catch it - > INADDR_ANY is not a string, I guess that is your point?) Yeah, it should either check the type or convert it appropriately: the C way, or the Python way. ;^) -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message