简体   繁体   English

Pocket Tanks的WiFi大堂如何工作?

[英]How does WiFi Lobby of Pocket Tanks work?

There's a game called Pocket Tanks. 有一款名为Pocket Tanks的游戏。 What it offers is that 2 players can connect to same WiFi Network (like in home) and play the game together. 它提供的是2个玩家可以连接到相同的WiFi网络(例如在家中)并一起玩游戏。 Its different from internet multiplayer. 它不同于互联网多人游戏。 It just needs common WiFi. 它只需要普通的WiFi。 I want to know how to implement such a system in my android game. 我想知道如何在我的Android游戏中实现这样的系统。 I've tried to search it on Google but no helpful results. 我试图在Google上搜索它,但没有任何有用的结果。 Any idea where do I even begin? 你知道我从哪里开始吗?

Thanks. 谢谢。

The app probably has a socket open listening on a certain port. 该应用程序可能在某个端口上监听了一个套接字。 Then when it searches for other phones, it just tries to connect to other IP addresses on that port. 然后,当它搜索其他电话时,它仅尝试连接到该端口上的其他IP地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM