Return-Path: william@bourbon.usc.edu Delivery-Date: Fri Aug 29 20:41:52 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00, LOCALPART_IN_SUBJECT autolearn=no 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 m7U3fqtb029373 for ; Fri, 29 Aug 2008 20:41:52 -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 m7U3muK1030552 for ; Fri, 29 Aug 2008 20:48:56 -0700 Message-Id: <200808300348.m7U3muK1030552@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: cs551 Date: Fri, 29 Aug 2008 20:48:56 -0700 From: Bill Cheng Someone wrote: > Is it necessary to have a char* buffer to store data? > Since we have to send the data 1 byte at a time, can I send a uint16_t > followed by 2 ints and char* for the data? There is more than one way to get this to work. Your job is to make sure that you are doing it according to the spec. So, what you are suggesting would work, if you do the right things and *verify* that you have done it right. -- Bill Cheng // bill.cheng@usc.edu