Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Aug 2003 21:20:04 -0700 (PDT)
From:      =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mbsd@pacbell.net>
To:        DANDY King <dandyking_18@hotmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: help needed-urgent
Message-ID:  <20030817210704.F72461@sotec.home>
In-Reply-To: <BAY1-F161CeEFRoaZX200037ace@hotmail.com>
References:  <BAY1-F161CeEFRoaZX200037ace@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030817210704.F72461>