我可以在用户自己系统的 google chrome 中访问 TCP|IP 套接字吗?即使获得用户的授予许可?
我想尝试一个需要访问用户系统的套接字(端口)的应用程序(chrome 应用程序)。
我可以做吗?我只是想为他们提供他们安装的软件的实用程序。
i want to try a application (chrome app) who need to access socket (port) of user's system.
can i do it. i just want to give them utility for the software they installed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,你不能很容易地做到这一点。 WebSocket 确实提供套接字支持,但不会真正为您提供您正在寻找的功能。
有一些超级复杂的方法可以解决这个问题,例如使用C/C++等,但编写和维护起来会非常耗时。您还可以编写一个代理,能够将原始套接字连接转换为 HTTP 请求或 WebSocket 请求,但同样需要大量工作。
Unfortunately, you can't do this very easily. WebSockets do provide socket support, but won't really give you the functionality you are looking for here.
There are some super complex ways of solving this, for example using C/C++ and the like, but would be extremely time consuming to write and maintain. You could also write a proxy that would be able to convert the raw socket connections to an HTTP request or WebSocket request, but again, lots of work.