Date: Sat, 03 Mar 2001 09:44:10 -0700 From: Wes Peters <wes@softweyr.com> To: Jonathan Graehl <jonathan@graehl.org> Cc: Freebsd-Net <freebsd-net@freebsd.org> Subject: Re: Deamon with perl Message-ID: <3AA11F5A.E398BCB@softweyr.com> References: <NCBBLOALCKKINBNNEDDLOENODLAA.jonathan@graehl.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AA11F5A.E398BCB>