CodePudding user response:
Still no one answerCodePudding user response:
I don't know is what east east... For the top.CodePudding user response:
Considering the ratio of the Flash player installed in our country in more than 95%, and the Flash player after a rigorous safety testing, use Flash XMLSocket is very feasible scheme,Is the basis of this scheme implementation:
1. The Flash provides XMLSocket,
2. JavaScript and Flash together: in JavaScript can directly call Flash program provided interfaces,
Concrete implementation methods: embedded within HTML pages of a class using the XMLSocket Flash program, JavaScript set of interface by calling the Flash program interface to communicate with the server socket, JavaScript after receiving the server after the transfer of information in XML format can easily control the content of the HTML page display,
About how to build the bridge ACTS as the JavaScript and Flash XMLSocket Flash program, and how to call Flash provided interfaces in JavaScript, we can refer to AFLAX (Asynchronous Flash and XML) Socket provided with the Demo and SocketJS,
Javascript and Flash together, greatly enhances the client processing power, from the Flash player V7.0.19 began, has been canceled XMLSocket port must be greater than the limit of 1023, Linux platform also supports Flash XMLSocket scheme, but the disadvantage of this solution is that:
1. Because there is no function of HTTP tunnel XMLSocket, XMLSocket class cannot automatically through the firewall;
2. Because is to use a set of interfaces, you need to set up a communication port, firewall, proxy server can also be placed restrictions on the HTTP channel port;
If your application is deployed in the enterprise Intranet, does not exist across the problem of firewall, this solution, we strongly recommend
Refer to the http://www.duobee.com/Blog-detail-id-94