1

I would like to communicate between my browser on the client PC and a C++ socket server running on an another PC. I researched online pretty much enough. I came across socket.io, HTML5 Websockets.

Though I am not sure about socket.io, websockets require a server that supports websockets. The pure old C++ socket server does not. Changing the server side is not an option. Is there anything else I can do with websockets?

Using socket.io, can I achieve the goal without installing an interpreter like nodejs on the server side? Any additional introduction of Javascript/Jquery library on the client side is affordable.

Or is there any other approach I can use?

Thank you.

3
  • You can write your own websocket handler on top of sockets, or, use a lib (I am almost sure, someone has already written one). Commented Jun 24, 2016 at 5:23
  • Thanks tkausl. Would you mind briefing it a little? Commented Jun 30, 2016 at 9:10
  • Please check this : stackoverflow.com/questions/39841942/… Commented Feb 28, 2017 at 8:33

1 Answer 1

1

C++ sockets and websockets are quite different things, having "socket" in their names doesn't mean they operate the same. Websockets protocol is RFC6455. There're several C++ libraries for implementing websocket support, if you can't use any type of web server.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.