# FCMHost.h File Reference

In a fully connected mesh, determines which system can act as a host. This generally is the system that has been connected to the mesh the longest. More...

`#include "RakNetTypes.h"`
`#include "Export.h"`
`#include "PluginInterface2.h"`
`#include "PacketPriority.h"`
`#include "DS_List.h"`
`#include "DS_Map.h"`

## Classes
class | FCMHost
## Enumerations
enum | FCMHostState { FCMHS_SOLO, FCMHS_QUERYING_FOR_HOST, FCMHS_CALCULATING_NEW_HOST, FCMHS_WE_ARE_HOST, FCMHS_REMOTE_SYSTEM_IS_HOST }
| In a fully connected mesh of peers, allows all peers to agree that another peer is hot. More...

## Detailed Description

In a fully connected mesh, determines which system can act as a host. This generally is the system that has been connected to the mesh the longest.

This file is part of RakNet Copyright 2003 Kevin Jenkins.

Usage of RakNet is subject to the appropriate license agreement. Creative Commons Licensees are subject to the license found at http://creativecommons.org/licenses/by-nc/2.5/ Single application licensees are subject to the license found at http://www.jenkinssoftware.com/SingleApplicationLicense.html Custom license users are subject to the terms therein. GPL license users are subject to the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

## Enumeration Type Documentation

enum FCMHostState

In a fully connected mesh of peers, allows all peers to agree that another peer is hot.

In peer to peer games it is often still useful to have one system act as a host / server For example, if the game has AI, only the host / server should control the AI

Enumerator:

  FCMHS_SOLO | No participants, so we are the default host.
  FCMHS_QUERYING_FOR_HOST | Querying to see if another system is the host.
  FCMHS_CALCULATING_NEW_HOST | Calculating a new host.
  FCMHS_WE_ARE_HOST | This system is the host.
  FCMHS_REMOTE_SYSTEM_IS_HOST | Another system is the host.