I want close a CFSocket

Posted by zp26 on Stack Overflow See other posts from Stack Overflow or by zp26
Published on 2010-05-18T20:28:07Z Indexed on 2010/05/18 20:30 UTC
Read the original article Hit count: 336

Filed under:
|
|

Hi, I have create a socket with CFSocket. My program is correct but now i wanna close the socket (client side). There is a istruction? Thanks and sorry for my English XP

My code:

CFSocketRef s;
s = CFSocketCreate(
        NULL, 
        PF_INET,
        SOCK_STREAM, 
        IPPROTO_TCP, 
        kCFSocketDataCallBack, 
        AcceptDataCallback, 
        &context);
...
CFSocketConnectToAddress(s, address, 0);
...
//here i wanna close the socket

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone