Return-Path: william@bourbon.usc.edu Delivery-Date: Tue Oct 28 16:38:27 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 m9SNcRHR010289 for ; Tue, 28 Oct 2008 16:38:27 -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 m9SNnaI8004879 for ; Tue, 28 Oct 2008 16:49:36 -0700 Message-Id: <200810282349.m9SNnaI8004879@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: 551 - final In-reply-to: <200810282323.m9SNN4L7004286@bourbon.usc.edu> References: <200810282323.m9SNN4L7004286@bourbon.usc.edu> Comments: In-reply-to Bill Cheng message dated "Tue, 28 Oct 2008 16:23:04 -0700." Date: Tue, 28 Oct 2008 16:49:36 -0700 From: Bill Cheng Regarding (2) below, it looks like if there is only one node, nam does not display properly. I guess that's okay. For this case, the grader will look at your output file and make sure the right informatin is in it. -- Bill Cheng // bill.cheng@usc.edu -----Original Message----- Date: Tue, 28 Oct 2008 16:23:04 -0700 From: Bill Cheng To: cs551@merlot.usc.edu Subject: Re: 551 - final Someone wrote: > 1) A '\n' or 'endl' flushes the buffer of printf/cout right? No. > I put an 'endl' > after I write a line to a file. I am currently not doing f.flush() after > writing to a file. I am still able to see meaningful output when I run th e > 'tail' command. So is 'endl' sufficient or should I do a flush as well? You need to do a flush() to make sure. > 2) I am not able to see anything in NS if I just have 1 node. I have the > initialization line and a line for the first node. Hmm... I don't remember if this is suppose to work. I'll try it when I get to a Linux machine. > 3) When a node sends a notify to its neighbors, is it sending the same > message to its N neighbors, or is it N messages to N neighbors. Rephrasin g > my question, does the node create N UOID's for the N messages, or is it o nly > 1 UOID for all the N messages? Since TTL is 1 for NOTIFY messages, it doesn't matter because its neighbor will not forward the message! Right?! -- Bill Cheng // bill.cheng@usc.edu