help needed-urgent

Mikko Työläjärvi mbsd at
Sun Aug 17 21:20:06 PDT 2003

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.
> Click here.
> _______________________________________________
> freebsd-hackers at mailing list
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at"

More information about the freebsd-hackers mailing list