简体   繁体   中英

Can a Firefox add-on listen on a UNIX socket?

I know how to listen on a dedicated port using nsISocketTransportService in Add-on sdk. But, is it possible to use UNIX socket in Add-on SDK to communicate with oher applications.

It seems you can't: https://support.mozilla.org/en-US/kb/permission-request-messages-firefox-extensions )

This would make sense, since:

  1. UNIX sockets are a special file on *nix
  2. they are not available across platforms
  3. this would be a huge security issue.

If you need to communicate with other software on the computer you can probably safely use regular network sockets, websockets, etc...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM