Return-Path: william@bourbon.usc.edu Delivery-Date: Fri Nov 21 20:30:35 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.4 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 mAM4UZkg028926 for ; Fri, 21 Nov 2008 20:30:35 -0800 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id mAM4SIFI005528 for ; Fri, 21 Nov 2008 20:28:18 -0800 Message-Id: <200811220428.mAM4SIFI005528@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: 551 - GET Date: Fri, 21 Nov 2008 20:28:18 -0800 From: Bill Cheng Someone wrote: > 1) If there is *only* 1 node then "search" can be terminated after > displaying the results right? Correct. This node knows that it has no neighbors, so it knows that nothing was flooded. But if you don't want to do anything special and wait for the some timer to expire, that would be fine too. > 2) The spec says: > Please note that a get command should not be allowed if it does not > immediately follow a search or a get command. > > What if the search does not return any results?, and the user types "get 1 > file" > Should I say "get not allowed"? > or Should I say "incorrect file id 1"? > > I feel the first one is correct. You should say something like "Search result set was empty. There is nothing to GET" or "Search result set was empty. [1] was not a valid file identifier." -- Bill Cheng // bill.cheng@usc.edu