receiving data with soreceive
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi, Thanks, Bijoy Thomas. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Bijoy Thomas