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 write buffer can't accept any bytes; you haven't even gotten to that point yet because the socket isn't open.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to