Return-Path: william@bourbon.usc.edu
Delivery-Date: Thu Apr 19 22:34:38 2007
X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu
X-Spam-Level: 
X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,
	NO_REAL_NAME autolearn=ham version=3.1.3
Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75])
	by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l3K5Ycrk021660
	for <cs551@merlot.usc.edu>; Thu, 19 Apr 2007 22:34:38 -0700
Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1])
	by bourbon.usc.edu (8.13.5/8.13.5) with ESMTP id l3K5YXV2004789
	for <cs551@merlot>; Thu, 19 Apr 2007 22:34:33 -0700
Message-Id: <200704200534.l3K5YXV2004789@bourbon.usc.edu>
To: cs551@merlot.usc.edu
Subject: Re: Press Ctrl - C to interrupt waiting 
Date: Thu, 19 Apr 2007 22:34:33 -0700
From: william@bourbon.usc.edu

Someone wrote:

  > The A(1) section of the grading guideline says:
  > 
  > in the 1st window, continue and type:
  >   (+1 points)
  >   search filename=foo
  >                      should get no response, type <Cntrl>c to interrupt
  >   (+1 points)
  >   search sha1hash=abcdef
  >                      should get no response, type <Cntrl>c to interrupt
  >   (+1 points)
  >   search keywords=hello
  >                      should get no response, type <Cntrl>c to interrupt
  >   (+1 points)
  >   search keywords="chess.jpg"
  >                      should get no response, type <Cntrl>c to interrupt
  >                      type:
  >   (+1 points)
  >   search filename=chess.jpg
  >                      should get a response, type:
  >   (+1 points)
  >   search sha1hash=f7917fe4976d2c24f225bc4b6c2334e554b91c28
  >                      should get a response, type:
  >   (+2 points)
  >   search keywords=mp3
  > 
  > Is it OK for the program to immediately return to prompt since
  > it can detect that there's no neighbor? (neighbor list len == 0).

Yes.

  > If yes, that the program in this case will *not* require a <Ctrl>-C
  > to get back to user.

Right, but a <Cntrl+C> should not hurt either.  When you are
sitting at the command prompt, pressing <Cntrl+C> should
only cause your program to print the prompt again.
--
Bill Cheng // bill.cheng@usc.edu <URL:http://merlot.usc.edu/william/usc/>
