Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 258605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:11:40+00:00 2026-05-11T22:11:40+00:00

I have made a multiplayer game using the GameKit Framework where 2 iPhones/iPods can

  • 0

I have made a multiplayer game using the GameKit Framework where 2 iPhones/iPods can connect to each other via bluetooth and play.

I am thinking of a way to choose which device will be able to play first. So the logical solution is to pick the host of the connection. Is there even a server and a client in the GKSession? Are they all peers? Which route shall I take to achieve what I need?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:11:40+00:00Added an answer on May 11, 2026 at 10:11 pm

    Basically, it is up to you to configure your session as you like.

    From the Apple documentation:

    Sessions discover other peers on the
    network based on a session mode which
    is set when the session is
    initialized. Your application can
    configure the session to be a server,
    which advertises a service type on the
    network; a client, which searches for
    advertising servers; or a peer, which
    advertises like a server and searches
    like a client simultaneously.

    A copy of your application acting as a
    server initializes the session by
    calling
    initWithSessionID:displayName:sessionMode:
    with a session mode of either
    GKSessionModeServer or
    GKSessionModePeer. After the
    application configures the session, it
    advertises the service by setting the
    session’s isAvailable property to YES.

    A copy of your application acting as a
    client initializes the session by
    calling
    initWithSessionID:displayName:sessionMode:
    with a session mode of either
    GKSessionModeClient or
    GKSessionModePeer. After configuring
    the session, your application searches
    the network for advertising servers by
    setting the session’s isAvailable
    property to YES. If the session is
    configured with the GKSessionModePeer
    session mode it also advertises itself
    as a server, as described above.

    Therefore, if you use GKSessionModePeer to initialize the session, you have peers (acting both as server and client). If you want to distinguish a server from its clients, initialize it with GKSessionModeServer.

    Kind regards.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started HTML5 game development, I made a couple of games using
I have made a website using( Asp.net, c# ) and its content in English
I have made a String[] array by using String.split(.) . I am now trying
I have made a very simple Pie Graph generator using Javascript & SVG graphics.
I have made a table using GtkTable and in that table I have attached
I have made the database using ASP.Net Configuration(aspnet_regsql.exe tool) . I want to use
EDIT: I have made a clean, new project, but still can't get it working.
I have made some helper functions that run a simulation using a lot of
I have made this game for Mac OS, but I realised that i need
I have made an Axis2 Web Service in Java. I am using Apache Tomcat

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.