On 2/19/2014 4:31 PM, Patrick McManus wrote:
Can this be done in JS or should it be done in C++? Would it be
advisable to do it in C++?


the idl will let you do either. I'm not really certain whether or not you
will find the other JS libraries sufficient to the implementation in JS or
not. Make sure not to block the main thread.


I *think* nsIDNSService is called from non-main threads too. Hence, you may be forced to have a C++ thread-safe implementation (JS is limited to main thread only). Good to check before you decide.

-hb-

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to