我可以在托管服务上创建套接字应用程序吗? [英] Can I create a socket application on a hosting service?

查看:34
本文介绍了我可以在托管服务上创建套接字应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要开发一个服务器端应用程序来打开套接字并管理与多个客户端的通信.以前的答案告诉我这可以使用 单个脚本文件,它永远循环.

I need to develop a server side application that opens sockets and manages communication with multiple clients. Previous answers have told me this is possible using a single script file, which loops forever.

这是否可以仅使用 PHP/Perl/Python 托管服务?或者我需要 VPS 或 shell 访问权限?

Is this possible using only a PHP/Perl/Python hosting service? or would I need a VPS or shell access?

感谢任何帮助,因为我以前从未使用过套接字.感谢您抽出宝贵时间.

Any help is appreciated since I've never worked with sockets before. Thanks for your time.

推荐答案

这会让你的主机很不高兴,因为他们的 CPU 时间很宝贵!如果您使用共享主机,您的主机可能会因为这样的解决方案而将您踢出去!(阅读您的合同以了解详细信息.)

It would make your host very unhappy since their CPU time is valuable! If you use shared hosting, your host might just kick you out for such a solution! (Read your contract for the fine details.)

我认为这是可能的,但这取决于您的主机设置,以及您的主机授予您的权限.大多数人会对永远运行的任何事情不满意.(他们更喜欢看到简短的应用程序.)

I think it could be possible but it depends on the setup of your host, plus the permissions your host are granting you. And most will be unhappy about anything that runs forever. (They prefer to see just short, simple applications.)

这篇关于我可以在托管服务上创建套接字应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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