Skip navigation.
 
mlRe: Are NSStreams or the sockets they use buffered?
FROM : Alastair Houghton
DATE : Wed Jan 09 19:14:25 2008

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

Related mailsAuthorDate
mlAre NSStreams or the sockets they use buffered? Ryan Homer Jan 9, 18:02
mlRe: Are NSStreams or the sockets they use buffered? Alastair Houghton Jan 9, 19:14