Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use c/c++ as a websocket client rather than server? #424

Open
rajhlinux opened this issue Apr 17, 2022 · 2 comments
Open

How can I use c/c++ as a websocket client rather than server? #424

rajhlinux opened this issue Apr 17, 2022 · 2 comments

Comments

@rajhlinux
Copy link

rajhlinux commented Apr 17, 2022

I saw the example codes and it is great. It actually works. I got a working websocket connection running on windows 10 after trying other websockets which never worked for... get ready... "c or c++".

Question is, how can I use websocketd to run c/c++ code as a websocket client rather than a server?

Just basically want to avoid using javascript or anything else as the websocket client to pass data to the c/c++ program, would like to have the websocket server talk directly to the c/c++ websocket client.

Any implementation on this? Thanks.

@rajhlinux rajhlinux changed the title any examples for c/c++? How can I use c/c++ as a websocket client rather than server? Apr 18, 2022
@sebkraemer
Copy link

I'm not sure I understand. Are you looking for c++ code to make websocket client requests? websocketd is not the right thing for that.

cpprestsdk has been a popular choice but I wouldn't recommend it because it is not actively maintained. It uses websocketpp under the hood for websockets which you can use directly.

@sunhaochen20070816163
Copy link

I found a way, contact me to get the code.
E-mail:[email protected]
--From translator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants