How to determine an invalid CFSocket

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2009-05-21T13:46:57Z Indexed on 2010/05/12 21:24 UTC
Read the original article Hit count: 416

Filed under:
|
|

Hi Everyone,

how can I avoid, to send data via CFSocketSendData to an invalid socket? I've try to determine the socket state with CFSockerIsValid, but this method returns still true when the other side is close.

So how can I determine if the socket is valid? In order so avoid Errors.

Thank Chris

© Stack Overflow or respective owner

Related posts about iphone

Related posts about socket