site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com Thanks for the great help! _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists.... Thank you so much for your great advices. I use my sockets synchronously but I didn't know that CFReadStreamOpen did initiate an open call on the socket but didn't wait for it to finish opening the stream. So the mistake was that when the program tried to execute CFReadStreamGetProperty the stream was opening but was not opened yet. So now I'm waiting for it to open and everything works as it should. This email sent to site_archiver@lists.apple.com