[Jslib] Sockets example
pete at mozdevgroup.com
Fri Nov 9 12:59:08 PST 2007
The socket code is real old and I haven't tested it in a long while.
So essentially is is out of date and needs maintenance.
Nick P wrote:
>I just discovered JSLib and I am very happy to find it! I am new to
>inviting. I'm very surprised that I didn't find this sooner - nearly
>you could not do it, or you had to use XPCOM, or involved a sort of
>Flash bridge hack.
>I have a few questions.
>1) I noticed that at
>http://jslib.mozdev.org/libraries/network/network.html the sockets.js
>file is not linked to documentation like the others. Is it
>unsupported or out of date/
>2) When I run the example socket.xul given at
>am never able to receive any data. If I for example, use
>www.google.com , port 80, and "GET / HTTP/1.1" (minus the quotes) as
>the parameters, I get...
>a status of "socket was opened...maybe" when I click open
>a status of "sent [GET / HTTP/1.1]" when I click send
>a status of "socket has 0 bytes waiting" when I test
>a status of "Received 0 bytes" when I receive
>I tried switching the SOCKET_XUL_ASYNC to false and this did not work either.
>What might I be doing wrong here?
>3) Should I be able to set up TCP connections to a server written in
>VB.net, listening for connections? It seems like I should be able to
>do this, but after all the searching i've been doing (and failed
>attempts) it would be nice to hear someone tell me I was on the right
>Jslib mailing list
>Jslib at mozdev.org
Pete Collins - Founder, Mozdev Group Inc.
Mozilla Software Development Solutions
More information about the Jslib