Xmpphp chat questions: How does xmpphp implement point-to-point, point-to-point, and multi-to-many communication? the information found on the Internet can be connected to any XMLPP1.0 server, and the instance is a communication software connected to google & nbsp; my understanding is: if you want to communicate, do you need an XMLPP1.0 server xmpphp chat question?
How does xmpphp implement point-to-point, point-to-point, and multi-to-multi-Communication? the information obtained on the Internet can be connected to any XMLPP1.0 server. the instance is a communication software connected to google.
My understanding is: do I need an XMLPP1.0 server for intermediate communication? How can I build an XMLPP1.0 server?
I hope you can help me with the answer. thank you very much!
I have been thinking about real-time web communication. I once looked at comit server pushing technology, but I don't think it's server pushing. it's no different from persistent connections. this is too inefficient!
Is there any way to solve the problem of real-time web communication efficiency?
------ Solution --------------------
I am always paying attention to this. I don't know why no one has discussed the socket method.
------ Solution --------------------
Persistent connections are not a problem in linux. nginx (epoll) and over 3000 connections can be handled.
I don't know about windows. it is certainly acceptable to maintain these connections, but I am afraid that IIS will be finished ..
To solve the problem of instant communication, there is a way to try to use flash to embed a client socket and connect to a socket server written in C/C ++. http protocol is not used ...? I remember a webgame was implemented in this way.
I personally disagree with the idea of comit technology. http is good at handling short connections in the request-response mode, and various web servers have also been optimized based on this requirement (I/O doesn't say, in terms of backend processing, each connection must occupy at least one thread or process. does context switching of thousands of threads cause a lot of efficiency loss ?).
If you want the http protocol to maintain persistent connections and push them in real time, it is a bit like using a rocket to pull the cock and expect it to get down.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service