From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 17 21:20:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDA4C37B401 for ; Sun, 17 Aug 2003 21:20:05 -0700 (PDT) Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 570B643FA3 for ; Sun, 17 Aug 2003 21:20:05 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from sotec.home (adsl-64-165-200-173.dsl.snfc21.pacbell.net [64.165.200.173]) by mtaw4.prodigy.net (8.12.9/8.12.3) with ESMTP id h7I4K4Iv020460; Sun, 17 Aug 2003 21:20:04 -0700 (PDT) Date: Sun, 17 Aug 2003 21:20:04 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@sotec.home To: DANDY King In-Reply-To: Message-ID: <20030817210704.F72461@sotec.home> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: help needed-urgent X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 04:20:06 -0000 On Mon, 18 Aug 2003, DANDY King wrote: > hello > > > our product is DVR(digital video recorder), it runs on linux system. > i am sending very imp inofrmation to server through sockets. some time i am > getting full data, some time i am getting partial data. > i don't know reasons please advice. > client side we uses VC++ GUI. client sending data neatly. in client side > what i did And that is related to FreeBSD... how? > > while((nread = read(fd,buff,BUFFSIZE)) >0) > send(sockfd,buff,nread,0); > > in server same data should receive. Wrong. You are not qualified to work on that product before taking at least "socket network programing 101". Hint: "short write". > but some time i am receiveing full and some time 90% only > > please advice Please post the name of the "product" and the company you work for, so I can stay way clear of both. > > Dharanish > > _________________________________________________________________ > MSN Hotmail now on your Mobile phone. > http://server1.msn.co.in/sp03/mobilesms/ Click here. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >