[英]Is it reasonable to use apache on my mac to be the game-server which people in my network can connect to and get information?
Not sure if its viable or reasonable idea. 不知道它是否可行或合理的想法。 I'm new to this so forgive me if I forgot something simple.
我是新手,如果我忘记了一些简单的事情,请原谅我。 The idea is that I would have a game that could be played by multiple people in my network.
我的想法是,我将拥有一个可以由网络中的多个人玩的游戏。 What I want todo is make my local apache server listen for connection and handle game state logic to all listeners and update all listeners of for example the positions of each clients.
我想要做的是让我的本地apache服务器侦听连接并处理所有侦听器的游戏状态逻辑,并更新所有侦听器,例如每个客户端的位置。 Is this feasible?
这可行吗? Currently I have my local apache setup on my mac.
目前,我在Mac上安装了本地apache。 I can connect to my mac from my android device via inputting my ip-address.
我可以通过输入ip地址从android设备连接到我的mac。 Any help on the next step?
下一步有帮助吗? I would like to get a hello-world client/server program going using apache at least.
我想至少使用apache获得一个hello-world客户端/服务器程序。 Just need some guidance please.
请只需要一些指导。
This question is too broad to be answered in this kind of a website. 这个问题太广泛了,无法在此类网站中回答。 If you're a developer and want to start developing online services with Java you can take a look at my blog , if you're into PHP you can find other blogs that can get you started.
如果您是开发人员并且想开始使用Java开发在线服务,则可以看一下我的博客 ,如果您喜欢PHP,则可以找到其他入门指南。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.