Skip to main content

All Questions

Tagged with
3 votes
1 answer
35 views

boost::beast::websocket How to handle multi async_write() function call?

I'm not a network programmer, my design choices are just based on my Google searches. My Scenario My clients could receive some events reported by other clients from the server consecutively, and ...
Ghasem Ramezani's user avatar
0 votes
1 answer
33 views

uWebSockets C++ error on send(): cork buffer must not be acquired without checking cancork

I'm developing a websoscket server for an embedded system. The requirements are very simple: send updates to a list of signals ids the webapp subscribes to. Everything works fine until the crash ...
Simone's user avatar
  • 13
0 votes
0 answers
39 views

Boost Beast WebSocket server Opening and Closing connection does not deallocate all memory on heap

I have been working to understand a series of unexplained memory allocations that don’t make sense in the boost beast websocket framework. I have taken the example of the async server implementation ...
user3826668's user avatar
0 votes
1 answer
23 views

How to disable error logging when client.connect(URL) in Socket.IO Client C++ library is unreachable?

https://github.com/socketio/socket.io-client-cpp/blob/master/API.md It keeps outputting to console whenever the server is unreachable. I want to suppress these messages completely. [2024-08-27 18:25:...
falero80s's user avatar
  • 398
2 votes
1 answer
89 views

Debugging a WebSocket Connection Through a Proxy Using Boost Asio and Beast in C++

I have written a script using Boost Asio and Boost Beast to enable WebSocket communication through a proxy server. I managed to develop a working prototype following How to connect with boost::asio ...
Arandott's user avatar
0 votes
0 answers
48 views

How do I check if my websocket connection is broken with winhttp?

For the important context: I'm trying to make a C++ client that connects and sends data to a websocket server. I didn't make and have no control over the server, its my friends. We have to use ...
massacring's user avatar
0 votes
0 answers
61 views

Communicate between a Python Server and C++ Client

The C++ client connects to the Python server without any issues, but when I send a message it's never received by the server. I don't get any errors or unexpected results on the client either, it ...
massacring's user avatar
0 votes
0 answers
68 views

Websocket from ESP32 to Python to slow

I am working on a project where I have Python server that's connected to an esp32 cam (AI Thinker) via a websocket. The ESP32 cam constantly takes frames and sends them to the server, where they are ...
yardenK's user avatar
  • 302
0 votes
2 answers
75 views

My self written http server code in c++ is refusing to connect

Below is my server.h file #include <iostream> #include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <stdlib.h> #include <string> class Server {...
Alphalaser's user avatar
0 votes
0 answers
37 views

Boost.Beast: websocket server which sends messages to all connected clients independently (no echo, maybe broadcast)

currently I am writing a C++ Application for simulating some flying objects in the real world (like GIS). All the visualization stuff should be made in one or more browser (1 server, X clients). To ...
ThomasAlvaEdison's user avatar
1 vote
0 answers
47 views

how to write and read at the same time in boost ssl web socket server?

Currently I'm using codes of this link text and in on_read I call a function which sends some string data multiple times in a loop, using ws_write(). The problem is that I can not read from the same ...
Rasoul.A's user avatar
0 votes
1 answer
44 views

Failed to retrieve data with Qt from deployed Node.js server using WebSockets

I wrote a simple server example in JavaScript that sends some data to a client when the client connects: send-gravity-from-server-to-client-box2d-wasm-js I deployed this simple server on free hostings:...
8Observer8's user avatar
  • 1,110
0 votes
0 answers
232 views

Crow C++ websocket sending data

I am creating a chat app that will pass data through a GNU radio flowgraph and back to the app. I am using a websocket connection between my frontend and backend. Currently I have a function that ...
menaric's user avatar
0 votes
0 answers
67 views

how to send text to server from client websocket qt

I tried to modify the code from the qt documentation, to process strings entered from the keyboard, and if it is not a command (starting with '-'), then send it to the server: echoclient.cpp : //! [...
Merab's user avatar
  • 11
2 votes
1 answer
441 views

Boost.Beast WebSocket with SSL: Multiple async_handshake calls needed for proper initialization?

I'm encountering an issue while trying to establish a WebSocket connection with SSL using Boost.Beast and Boost.Asio. The WebSocket connection seems to be working only when I call both async_handshake ...
SpeakX's user avatar
  • 385

15 30 50 per page
1
2 3 4 5
32