Re: Are NSStreams or the sockets they use buffered?
Re: Are NSStreams or the sockets they use buffered?
- Subject: Re: Are NSStreams or the sockets they use buffered?
- From: Alastair Houghton <email@hidden>
- Date: Wed, 9 Jan 2008 18:14:25 +0000
On 9 Jan 2008, at 17:02, Ryan Homer wrote:
The end result at the moment is that on my side the file appears to
be completely sent way before the receiving end gets the complete
file. So I am wondering if the underlying socket connection that the
Cocoa framework uses is buffering my data.
If it's a TCP socket, a certain amount of buffering might happen,
yes. If you're trying to do real-time communication over TCP, you may
want to set the TCP_NODELAY option.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden