gamekit over the internet

后端 未结 2 1473
时光说笑
时光说笑 2020-12-29 16:04

the gamekit over wifi documentation talks about local wifi and that it\'s built on top of bonjour. Does that mean it does not work over the Internet, locating user/players i

2条回答
  •  猫巷女王i
    2020-12-29 16:46

    YES, Game Kit can be used to connect peers over Internet.

    BUT in this case your application must respond to peerPickerController:didSelectConnectionType: and handle all your private handshake protocol to discover peers and establish communication. A web service on your server is also required (unless users type in their IP address).

    Good luck Sam!


    References:

    Apple IOS Reference Library, Game Kit Programming Guide.

    Sanford University Online Course, iPhone Development, Lecture 17: Bonjour, NSStream, GameKit (see at 48 min 28 sec).

提交回复
热议问题