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: do I need an XMLPP1.0 server for intermediate communication? How can I build an XMLPP1.0 server? & Nbsp; I am very grateful to you for your help! & Nbsp; xmpphp chat problems
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.