开发者

Java in browser... opening a socket

I don't mind presenting the user with permission dialogs... What's involved in opening a list开发者_如何学Pythonening socket on a web page?


Well, you use a signed applet. The user has to accept the applet and after that you can do about anything you can do with a standalone Java application.


The browser sandbox allows you to open a socket back to the originating server. That should be enough.

The main alternatives for connecting sockets to other address entail using a signed applet, a browser plugin / addon, or (possibly) an ActiveX control. All of these alternatives require the user to take active steps to "accept" or install stuff, and all of them are a potential security risk for the user ... whether or not you are one of the good guys who don't push malware at people.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜