Re: [Freeswitch-users] mod_spidermonkey_socket
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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400 ----- Original Message ---- From: Jonas Gauffin <jonas.gauffin@gmail.com> To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, August 22, 2007 2:25:28 AM Subject: [Freeswitch-users] mod_spidermonkey_socket Hello 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. usage: 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. //Jonas _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ____________________________________________________________________________________ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/
participants (1)
-
Anthony Minessale