asyncsocket

/**
* In the event of an error, the socket is closed.
* You may call "unreadData" during this call-back to get the last bit of data off the socket.
* When connecting, this delegate method may be called
* before"onSocket:didAcceptNewSocket:" or "onSocket:didConnectToHost:".
**/
- (void)onSocket:(AsyncSocket *)sock willDisconnectWithError:(NSError *)err;
/**
* Called when a socket disconnects with or without error. If you want to release a socket after it disconnects,
* do so here. It is not safe to do that during "onSocket:willDisconnectWithError:".
*
* If you call the disconnect method, and the socket wasn't already disconnected,
* this delegate method will be called before the disconnect method returns.
**/
- (void)onSocketDidDisconnect:(AsyncSocket *)sock;
/**
* Called when a socket accepts a connection. Another socket is spawned to handle it. The new socket will have
* the same delegate and will call "onSocket:didConnectToHost:port:".
**/
- (void)onSocket:(AsyncSocket *)sock didAcceptNewSocket:(AsyncSocket *)newSocket;
/**
* Called when a new socket is spawned to handle a connection. This method should return the run-loop of the
* thread on which the new socket and its delegate should operate. If omitted, [NSRunLoop currentRunLoop] is used.
**/
- (NSRunLoop *)onSocket:(AsyncSocket *)sock wantsRunLoopForNewSocket:(AsyncSocket *)newSocket;

柠檬草1988
- 粉丝: 0
最新资源
- 2023年catics一至九届三DCAD竞赛试题.doc
- 什么是互联网营销怎么理解PPT课件.pptx
- 建设网络平台和学生干部技能培训的专项方案.doc
- 网站会员服务协议.docx
- 免费保存网络文档-免费保存豆丁文档的保存方法------.pdf
- 数学建模十大经典算法.doc
- 关于电气自动化实习报告大全.doc
- 电子计算机与多媒体课堂演示.pptx
- 自考计算机网络安全复习资料.doc
- 夜猫商务会所运营管理平台数据库结构说明书要点.doc
- 基于单片机的数字温度计课程设计(硬件).doc
- 嵌入式培训考题.doc
- 技术标系统集成监理方案.doc
- 网络营销及技术.pptx
- 开题报告基于视觉和机器人操作系统的无人系统自主定位技术.pdf
- 软件工程打印大题作业.docx