In less than 20 lines of code (actually, there are only eight that are doing anything), you have built a functional chat server. Here is the flow of this simple program.
在不到20行代码中(实际上,真正实现功能的代码只有8行),您已经构建了一个能够使用的聊天服务器。
If that fails, you may need to have a long chat with your machine's system administrator to figure out what's causing the failure, which, unfortunately, is beyond the scope of this article.
如果还失败,你可能需要联系您的系统管理员去排除故障,这超出了本文所讲的范围。
If you have used a Web-based chat program, or anything that claims to be "real-time", it probably used this technique.
如果您使用过基于Web的聊天程序,或者声称“实时”的任何程序,那么它很可能就是使用了这种技术。
应用推荐