Home > other > C + + program can be implemented at the same time compatible with the websocket server and socket cl
C + + program can be implemented at the same time compatible with the websocket server and socket cl
Time:09-16
C + + program can be implemented at the same time compatible with the websocket server and socket client? I now have a socket server (has been completed, cannot be modified), now need to HTML browser communication, can not turn can add a similar interface program (c + + implementation), can receive data from the socket server (ACTS as a socket client), at the same time, data can be received to p browser page (ACTS as a websocket server), excuse me everybody can realize the great spirit from the technical? Or you have any better Suggestions? Thank you very much!
CodePudding user response:
I think you are not the original server support HTTP service, so it is unable to use a browser to access the original server data, so you have such demand, your implementation approach is completely feasible, as now, the most common type of database application system, database server, WEB server (from the database server, WEB server is the client, look from the browser and the WEB server is the server), browser, Its essence is to be a WEB application, but the use of c + + to realize WEB site, is technically feasible, but from the development efficiency is not the best, common WEB development language such as JAVA, c # PHP, and there are many mature framework can be used,