Return-Path: william@bourbon.usc.edu Delivery-Date: Tue Oct 28 16:11:55 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 m9SNBt1Q010040 for ; Tue, 28 Oct 2008 16:11:55 -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 m9SNN4L7004286 for ; Tue, 28 Oct 2008 16:23:04 -0700 Message-Id: <200810282323.m9SNN4L7004286@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: 551 - final Date: Tue, 28 Oct 2008 16:23:04 -0700 From: Bill Cheng 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 the > '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. Rephrasing > my question, does the node create N UOID's for the N messages, or is it only > 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