简体   繁体   English

在Mac上使用apache作为网络中的人可以连接并获取信息的游戏服务器是否合理?

[英]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.

相关问题 我的MAC同时连接到以太网和Wifi,如何检测从哪个网络接入 - My MAC is connected to both Ethernet and Wifi at time,how can i detect from which network is getting acessed 为 my.network 中所有连接的计算机获取 IP、MAC 和主机名 - Get IP, MAC and hostname for all connected computers in my network 如何在运行OS 10.6.4的Mac上重新初始化Apache - How can I reinitialize Apache on my Mac running OS 10.6.4 无法让Django在我的Mac上运行 - Can't get Django to work on my Mac MYSQL PID / SOCK错误-我无法让Mac El Capitan与完整的Web服务器一起使用 - MYSQL PID/SOCK error - I can't get my Mac El Capitan to work with full web server 更改我的Apache本地服务器使用的python安装 - Change which python installation my apache local server is using 我的kbhit()在Mac上无法运行,正在制作PingPong游戏 - My kbhit() is not Working On Mac, Making a PingPong Game 我可以将Mac Mini Snow Leopard Server用作多人的开发机器吗? - Can I use an Mac Mini Snow Leopard Server as a development machine for multiple people? 如何在Mac OS上从iPhone连接到本地主机 - how to connect from my iphone to my localhost on my mac os 我可以在Mac上安装libexpect并将其与Xcode一起在C中使用吗? - Can I install libexpect on my Mac and use it in C with Xcode?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM