3.4.5.2 Peer-to-Peer Group Sequence

Peer-to-peer group sequence diagram

Figure 19: Peer-to-peer group sequence diagram

Only the game session host can create or modify groups. The host can create and destroy groups and add and remove players from existing groups.

  1. If a non-host peer wants to create a group, it MUST issue a message to the host:

    DN_REQ_CREATE_GROUP

  2. Once the host has created a new group (via request from a peer or locally), it issues a command to all the connected peers:

    DN_CREATE_GROUP

  3. If a non-host peer wants to add a new player to an existing group, it MUST issue a message to the host:

    DN_REQ_ADD_PLAYER_TO_GROUP

  4. Once the host has added the new player to the group (via a peer or locally), the host responds to all connected peers with:

    DN_ADD_PLAYER_TO_GROUP

  5. If a non-host peer wants to delete a player from an existing group, it MUST issue a message to the host:

    DN_REQ_DELETE_PLAYER_FROM_GROUP

  6. Once the host has deleted the player from the group (via a peer or locally), the host responds to all connected peers with:

    DN_DELETE_PLAYER_FROM_GROUP

  7. If a non-host peer wants to destroy an existing group, it MUST issue a message to the host:

    DN_REQ_DESTROY_GROUP

  8. Once the host has destroyed a group (via Req or locally), the host responds to all connected peers with:

    DN_DESTROY_GROUP