receiving data with soreceive
receiving data with soreceive
- Subject: receiving data with soreceive
- From: Bijoy Thomas <email@hidden>
- Date: Sat, 14 May 2005 17:36:51 -0400
Hi,
How can i tell soreceive to get me whatever data has come upto a
maximum length. I am trying to receive data from a server and the
maximum length of data it can send is 100 bytes. If i specify
auio.uio_resid = 100 and the server sends less than 100 bytes, the
soreceive blocks. If i give a small value like 50 and the server sends
75 bytes, i miss out on the remaining 25 bytes. The flag is am using is
MSG_WAITALL and I am using mbufs to receive my data. Should i try a
soreceive with MSG_PEEK, get the length of data and then use that
length to call soreceive?
Thanks,
Bijoy Thomas.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden