[Freeswitch-users] mod_spidermonkey_socket

Anthony Minessale anthmct at yahoo.com
Wed Aug 22 06:04:17 PDT 2007

Thanks for the contribution.
We can add it to trunk and maybe if you are lucky someone else
will add to it / finish it.  Or at least it will be maintained until
you can work on it more.  We can assign commit access for you to the folder once we add it to trunk.

Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org

----- Original Message ----
From: Jonas Gauffin <jonas.gauffin at gmail.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Wednesday, August 22, 2007 2:25:28 AM
Subject: [Freeswitch-users] mod_spidermonkey_socket


I have a spidermonkey socket module that aren't finished, it uses the
switch_socket_XXX methods. I can't work anymore on it for at least a
month, and there are som users waiting for a socket module. Therefore
it would be nice to add it to the trunk so that others can complete it
(or at least test it).

It currently got the following methods: connect, close, send, readBytes, read.

The question is: Should I create a patch for it and document it in the
wiki? Or should I wait until I can complete it.

Note! It's completely untested.

var socket = new Socket();
socket.connect("hostname", 1234");
var line = socket.read();
socket.send("this is something\n");

The read method takes a delimiter and do not return until the
delimiter have been received (or the connection have been dropped).
The default delimiter is "\n".
The readBytes method reads the number of specified bytes.

I've only made a TCP socket implementation. For simplicity, maybe
there should be two socket classes. One for UDP and one for Tcp.


Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org

Pinpoint customers who are looking for what you sell. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070822/bc2b4361/attachment-0002.html 

More information about the FreeSWITCH-users mailing list