codermyy / cocoaasyncsocket_demo Goto Github PK
View Code? Open in Web Editor NEW基于AsyncSocket搭建即时通讯体系 . 包含TCP连接 , 消息发送 , 消息接收 , 心跳处理 ,断网重连 , 消息超时 , 消息分发 , 数据库结构设计 , 消息丢失等 . 以及UI设计, 文本表情消息/语音消息/图片消息/视频消息/文件消息/撤回消息/提示语消息的实现思路讲解
基于AsyncSocket搭建即时通讯体系 . 包含TCP连接 , 消息发送 , 消息接收 , 心跳处理 ,断网重连 , 消息超时 , 消息分发 , 数据库结构设计 , 消息丢失等 . 以及UI设计, 文本表情消息/语音消息/图片消息/视频消息/文件消息/撤回消息/提示语消息的实现思路讲解
楼主的CHatHandler类的addDelegate:delegateQueue中的第二个入参queue貌似还没有实现,不过楼主蛮厉害的,下载学习下,最近对app架构设计比较迷茫,看了楼主的chatHandler后,有点感悟了
你好,请问为什么下载下来,运行报错啊。
Showing Recent Messages
👎 Multiple commands produce '/Users/luoliang/Library/Developer/Xcode/DerivedData/CocoaAsyncSocket_TCP-hickedlkxfaqbqgxsuxanuhwsbjh/Build/Products/Debug-iphoneos/CocoaAsyncSocket_TCP.app/Info.plist':
我pod以后,根本不能运行,全是错误啊!大神,可以指教一下吗?
请问你有简书的地址吗,关于相关的细节和技术点可以在上面看到学习,谢谢
看看你们tcp断开重新连接机制,并且消息发送逻辑的
你好,请问一个问题。就是你在什么时候进行socket的链接的呢,链接后什么时候把用户信息发送给后台的呢
如上~~
想看看你们这个9张图片的设计逻辑的,我们也在做相同的东西。目前取图片画上去的。有卡顿效果。不知道你们怎么处理的
为什么会有这么多错误啊
check_compile_time(sizeof(ICMPHeader) == 8);
check_compile_time(offsetof(ICMPHeader, type) == 0);
check_compile_time(offsetof(ICMPHeader, code) == 1);
check_compile_time(offsetof(ICMPHeader, checksum) == 2);
check_compile_time(offsetof(ICMPHeader, identifier) == 4);
check_compile_time(offsetof(ICMPHeader, sequenceNumber) == 6);
这几行一直报错,是什么原因?
check_compile_time(sizeof(ICMPHeader) == 8);
check_compile_time(offsetof(ICMPHeader, type) == 0);
check_compile_time(offsetof(ICMPHeader, code) == 1);
check_compile_time(offsetof(ICMPHeader, checksum) == 2);
check_compile_time(offsetof(ICMPHeader, identifier) == 4);
check_compile_time(offsetof(ICMPHeader, sequenceNumber) == 6);
发送视频为什么崩溃,能加下您吗?非常感谢876107909我扣扣
Linkers command failed with exit code 1(use -v to see invocation)
真机运行就报这个错误,也没有指向
我是在iphone6 10.2.1上运行的
_chatSocket = [[GCDAsyncSocket alloc]initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
这里用main queue好吗? 用 新create的serial queue如何?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.