Return-Path: william@bourbon.usc.edu Delivery-Date: Fri Sep 5 05:56:41 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 m85CufHM004561 for ; Fri, 5 Sep 2008 05:56:41 -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 m85CsuRm027756 for ; Fri, 5 Sep 2008 05:54:56 -0700 Message-Id: <200809051254.m85CsuRm027756@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: error sending the data Date: Fri, 05 Sep 2008 05:54:56 -0700 From: Bill Cheng Someone wrote: > Dear Prof,I 'm trying to send the data from client, the data is just > 0xFE10but at the receiver end, it is received as > FE100000. > I don't understand where this extra 0s come from... Are you saying that you are sending 2 bytes but you are receiving 4 bytes? As I've mentioned before, are you sure this is not a printing error? Have you used the debugger to verify that actual data received? -- Bill Cheng // bill.cheng@usc.edu