Re: CFWriteStreamWrite Blocking if we give invalid Host.

2008-06-19 Thread Jens Alfke
Looks like you're using the stream in synchronous mode, since you haven't added it to a runloop. In that case, I'm pretty sure that the DNS lookup and socket opening are done synchronously, too. That explains the delay you're seeing. The "-1" return value only indicates that the socket's wr

Re: CFWriteStreamWrite Blocking if we give invalid Host.

2008-06-19 Thread Kyle Sluder
On Thu, Jun 19, 2008 at 1:00 AM, SridharRao M <[EMAIL PROTECTED]> wrote: > Friends please help me if you know how to avoid blocking. Have you tried asking on the macnetworkprog list? This is the cocoa-dev list, and while many people here are familiar with using CFNetwork, that's not a Cocoa techn

CFWriteStreamWrite Blocking if we give invalid Host.

2008-06-18 Thread SridharRao M
Hi, I am using CFWriteStreamWrite to write some command on server and using CFReadStreamRef to retrieve some value from server. CFWriteStreamWrite is blocking if we give invalid host address,instead it should return -1 as result.But it's blocking, In the documentation it 's given as use CFWriteStr