Hi,

I saw that there is a UDP test in tests/sockets/test_sockets_echo_client.c 
so I assume UDP sockets are possible with emscripten.
But when trying to send a datagram over an unconnected socket, I get this 
in the browser console:

*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/.*


So the single datagram send somehow gets translated into full blown TCP/IP 
connection with http communication over it?

Is it possible to send datagrams without connection in firefox using 
emscripted source code?

When running the sockets test that comes with emscripten, I get:

*...*
*test_getaddrinfo (test_sockets.sockets) ... ok*
*test_gethostbyname (test_sockets.sockets) ... ok*
*test_getnameinfo (test_sockets.sockets) ... ok*
*test_getprotobyname (test_sockets.sockets) ... ok*
*test_inet (test_sockets.sockets) ... ok*
*test_inet2 (test_sockets.sockets) ... ok*
*test_inet3 (test_sockets.sockets) ... ok*
*test_inet4 (test_sockets.sockets) ... ok*
*test_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 message*
*do_msg_read: read 14 bytes*
*do_msg_write: sending message header for 14 bytes*
*do_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 message*
*do_msg_read: read 14 bytes*
*do_msg_write: sending message header for 14 bytes*
*do_msg_write: wrote 14 bytes 14*
*do_msg_read: read 0 bytes*
*[killing 735]*
*[kill succeeded]*
*[killing 735]*
*[kill succeeded]*
*ok*
*test_sockets_echo (test_sockets.sockets) ... running websockify on 49160, 
forward to tcp 49159*
*WebSocket 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:49159*

*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.*
*[killing 759]*
*[kill succeeded]*
*select failed: Interrupted system call*
*[killing 759]*
*[kill succeeded]*
*ERROR*
*test_sockets_echo_bigdata (test_sockets.sockets) ... running websockify on 
49170, forward to tcp 49169*
*WebSocket 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:49169*

*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.*
*[killing 782]*
*[kill succeeded]*
*select failed: Interrupted system call*
*[killing 782]*
*[kill succeeded]*
*ERROR*
*test_sockets_partial (test_sockets.sockets) ... running websockify on 
49180, forward to tcp 49179*
*WebSocket 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*

*...*




Thx,

  Bram
 

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to