开发者

IPC between Firefox extension and COM component

I need to make a synchronous call between a JavaScript XPCOM component and a COM component (native WIN32 process).

I know, options are:

开发者_如何学Python 1) Open up sockets and use TCP/IP

2) Have an NPAPI plugin, and load the plugin in the extensions XUL

3) Use Ctypes

Is there any other better way to implement this ?


There is also the possibility to have an executable in your extension and call it via nsIProcess - but that's one-way communication only. Not sure whether it is "better", depends on what your problem with ctypes is.


nsIProcess does not support IPC. Here is a project in which developers try to develop new interface:

http://zenit.senecac.on.ca/wiki/index.php/User:Jamesboston

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜