15:51:08.088 GET http://lobby.stolk.org:7460/15:51:28.003 Firefox can't establish a connection to the server at ws://lobby.stolk.org:7460/.
...test_getaddrinfo (test_sockets.sockets) ... oktest_gethostbyname (test_sockets.sockets) ... oktest_getnameinfo (test_sockets.sockets) ... oktest_getprotobyname (test_sockets.sockets) ... oktest_inet (test_sockets.sockets) ... oktest_inet2 (test_sockets.sockets) ... oktest_inet3 (test_sockets.sockets) ... oktest_inet4 (test_sockets.sockets) ... oktest_nodejs_sockets_echo (test_sockets.sockets) ... WARNING root: -I or -L of an absolute path "-I/home/bram/src/emscripten/tests/sockets" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.do_msg_read: allocating 14 bytes for messagedo_msg_read: read 14 bytesdo_msg_write: sending message header for 14 bytesdo_msg_write: wrote 14 bytes 14[killing 693][kill succeeded][killing 693][kill succeeded]WARNING root: -I or -L of an absolute path "-I/home/bram/src/emscripten/tests/sockets" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.do_msg_read: allocating 14 bytes for messagedo_msg_read: read 14 bytesdo_msg_write: sending message header for 14 bytesdo_msg_write: wrote 14 bytes 14do_msg_read: read 0 bytes[killing 735][kill succeeded][killing 735][kill succeeded]oktest_sockets_echo (test_sockets.sockets) ... running websockify on 49160, forward to tcp 49159WebSocket server settings:- Listen on :49160- Flash security policy server- SSL/TLS support[Websockify on process [759, 760]]- proxying from :49160 to 127.0.0.1:49159WARNING root: -I or -L of an absolute path "-I/home/bram/src/emscripten/tests/sockets" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.[killing 759][kill succeeded]select failed: Interrupted system call[killing 759][kill succeeded]ERRORtest_sockets_echo_bigdata (test_sockets.sockets) ... running websockify on 49170, forward to tcp 49169WebSocket server settings:- Listen on :49170- Flash security policy server- SSL/TLS support[Websockify on process [782, 783]]- proxying from :49170 to 127.0.0.1:49169WARNING root: -I or -L of an absolute path "-I/home/bram/src/emscripten/tests/sockets" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.[killing 782][kill succeeded]select failed: Interrupted system call[killing 782][kill succeeded]ERRORtest_sockets_partial (test_sockets.sockets) ... running websockify on 49180, forward to tcp 49179WebSocket server settings:- Listen on :49180- Flash security policy server- SSL/TLS support[Websockify on process [814, 815]]- proxying from :49180 to 127.0.0.1:49179...
Whatever Emscripten can and cannot do is limited by what JavaScript can and cannot do.
To the best of my knowledge, the closest you can get are WebRTC data channels. Sadly, I stopped tracking WebRTC when, after months of hoping it becomes more usable for XMPP Jingle interop with older clients, it continued steering in the other directions. And a compatibility breakage discouraged me further (sure, new API allows trickle candidates but...eh). Anyway, these days data channels may or may not be available and they may or may not allow non reliable datagram level transmissions. They are, however, your best hope.
Long term, the best option is still simply to avoid treating Emscripten as a black box and a magical C(++)-to-Javascript compiler (although it is very magical!) and take a look at what modern browsers can and cannot do.
And to the best of my knowledge, programmatically sending a single IP or UDP datagram is one of the things they cannot do for security issues. Heck, that's the reason we have "same-origin" policies and hacks to override it in case we control the destination server... :-)
sent from phone
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/5yWzmkyazYk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/5yWzmkyazYk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-discuss+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
On Thu, Jan 16, 2014 at 9:18 PM, Bram Stolk <b.s...@gmail.com> wrote:
Thanks,
So if I understand correctly: WebSockets is TCP and WebRTC may be either UDP or TCP, without direct control on what is used?
In my application I cannot afford TCP, as I need to absolute lowest latency, and cannot tolerate acknowledgements, retransmissions, etc.It is a shared physics sim on two different machines and will only work with minimal latencies.(Packetloss disturbs TCP greatly in latency and even more so in throughput.)
So if I understand correctly: WebSockets is TCP and WebRTC may be either UDP or TCP, without direct control on what is used?
--
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/5yWzmkyazYk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.