On 3/7/14, 3:11 PM, Syed Qutub wrote:
On Wed, Feb 26, 2014 at 8:44 PM, Fabrice Desré <[email protected]> wrote:
So any suggestions on specifically what other options do I have in this
scenario?
Can you compile you c++ code to js with emscripten (http://emscripten.org)
?
I am trying to use emscripten but given the size and complexity of our
project, we are facing several issues here. Secondly we need some low-level
functionality, e.g. I am not sure (plz correct me) if we can create a UDP
packet or send out a multicast packet, or connect to a tcp port by using
Javascript only?. So porting our whole C++ project to Javascript may not be
of much use?.
TCP Socket is already working:
https://developer.mozilla.org/en-US/docs/WebAPI/TCP_Socket
https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket
UDP is hopefully coming soon:
https://bugzilla.mozilla.org/show_bug.cgi?id=745283
For multicast I am not sure. We may need to file a bug for that one.
What I already have is: executable binaries of our core daemon for FFOS
platform. I have also tested it successfully on a test device running b2g
by using adb shell command line and running that daemon. What I am looking
for is a quick way to make our JS application talk to our daemon which
listens on a specific tcp port.
You are not going to be able to easily distribute this application to
users without physically getting the phone and doing some custom
flashing. Firefox OS is designed only to run application code written in
Javascript.
With that being said, TCPSocket is available for use right now. See the
above documentation.
Donovan
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g