You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run tcp_echo_client.c, I cannot connect to the server run by tcp_echo_server.py. The server can print the connection request, but emscripten_websocket_get_ready_state always returns 0, and the connection cannot be established correctly.
Does it mean that as a bridge, it can only connect to the websocket server, but not to TCP? Then why does your sample code have both websocket connection and connect(socket)? If you see this, please help me solve my doubts. Thank you.
Does it mean that as a bridge, it can only connect to the websocket server, but not to TCP? Then why does your sample code have both websocket connection and connect(socket)? If you see this, please help me solve my doubts. Thank you.
I'll try to answer this question specifically: When you use PROXY_POSIX_SOCKETS all socket communication (i.e. all TCP/UDP connections from the C/C++ code) are proxied (i.e. tunneled) through a single websocket connection that you need to run on your server.
Hello!
When I run tcp_echo_client.c, I cannot connect to the server run by tcp_echo_server.py. The server can print the connection request, but
emscripten_websocket_get_ready_state
always returns 0, and the connection cannot be established correctly.Does it mean that as a bridge, it can only connect to the websocket server, but not to TCP? Then why does your sample code have both websocket connection and connect(socket)? If you see this, please help me solve my doubts. Thank you.
I used cmake to compile, here is my CMake
The text was updated successfully, but these errors were encountered: