可以在小程序打开一个套接字连接到其服务器 [英] can a applet open a socket connection to its server

查看:288
本文介绍了可以在小程序打开一个套接字连接到其服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以一个小程序开放套接字连接到服务器?


解决方案

  

不可信的小程序只能与回从他们来到(即交付的.class文件的主机)的服务器。如果您需要与其他服务器进行通信,你要么必须登录您的小程序(和用户必须信任你),或设置代理服务器的Web服务器主机设备之间的通信上。


所以,是的,你可以打开一个套接字自己的服务器。


资源:

can a applet open socket connection to the server?

解决方案

Untrusted applets can only communicate back to the server from which they came (the host that delivered the .class files). If you need to communicate with another server, you'll either have to sign your applet (and the user will have to trust you), or setup a proxy server on your web server to facility the communication between hosts.

So yes you can open a socket to your own server.


Resources :

这篇关于可以在小程序打开一个套接字连接到其服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆