doujing6436 2011-10-03 13:22
浏览 13
已采纳

在有限资源上开发服务器的最合适方式

I am facing a problem which seems to have few, and especially simple solutions. To get to the point; I have written a client application on Windows using C++. This client application takes input from the user, and is supposed to send this information to a server, which find users who's inputs match each other - like matchmaking.

How can I (an indie developer) with most ease solve this problem, IF and only if I cannot host the server application myself, and do not want to spend money on renting a whole virtual private server?

Most preferred, I want to write this server using sockets in PHP and just rent a web-server with unlimited bandwidth, but it seems to have far too many restrictions, related to timeouts (PHP's set_time_limit, Apache's timeout value and the internal OS timeout value).

So to sum up the question, and in a generic form; How can I as an indie developer create a server application which do not require using my own bandwidth and without expensive purchases for items such as a virtual private server.

  • 写回答

2条回答 默认 最新

  • douyingzhan5905 2011-10-03 14:33
    关注

    You can just code your server application in PHP as a webservice.

    In your client application, instead of connecting through sockets and a using a home-made protocol, you just have to use the HTTP REST webservice you created. It seems to me even easier than coding a whole server.

    Maybe you absolutely want to use socket on your server, but you didn't specify that in your question.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 对于知识的学以致用的解释
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败