Return-Path: william@bourbon.usc.edu Delivery-Date: Mon Sep 8 20:23:54 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m893Ns7A030545 for ; Mon, 8 Sep 2008 20:23:54 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m893N15n013409 for ; Mon, 8 Sep 2008 20:23:01 -0700 Message-Id: <200809090323.m893N15n013409@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Regarding data being sent Date: Mon, 08 Sep 2008 20:23:01 -0700 From: Bill Cheng Someone wrote: > When I pass in strings like cs.usc.xxxx to inet_aton() I get 24.28.193.9 and > a non-zero return value, but when I pass in nonsense like werwerw the > function returns 0 as the man pages say it will. Valid address work just > fine. Any idea what might be causing that? Hmm... I'm not sure what you are asking. Sounds like it's doing what you want. Could you give a more concrete example of when it does something you don't want? -- Bill Cheng // bill.cheng@usc.edu -----Original Message----- From: Bill Cheng [mailto:william@bourbon.usc.edu] Sent: Monday, September 08, 2008 6:57 PM To: cs551@merlot.usc.edu Subject: Re: Regarding data being sent Someone wrote: > Is it acceptable if I print the IP of nunki at the server instead of the > localhost (127.0.0.1) The adr command is to get the IP address given a hostname. So, you should return the IP address if there is one. -- Bill Cheng // bill.cheng@usc.edu