ServerHeartbeat
A class in Root.Township, the global namespace.
Starts an external heartbeat monitor process for a dedicated server and logs a heartbeat line every 100 frames. Server, only with the /heartbeat command line argument.
- Listed in Global namespace: S
- Documented in Startup and app state
Constructors
| Member | What it is |
|---|---|
ServerHeartbeat() | Creates a ServerHeartbeat with default values. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private int count | Frames since the last heartbeat. |
private static Process heartbeatMonitorProcess | The external monitor process. |
private static Logger logger | NLog logger for this class. |
private IUnityUpdateMethod sendingLoop | Handle for the registered SendHeartbeatLoop method. |
private static int sendInterval | Frames between heartbeats (100). |
Properties
1 private and internal property
Methods
| Member | What it is |
|---|---|
static void Shutdown() | Kills the heartbeat monitor process, or the first process named ServerHeartbeat if that fails. Called on application quit. |
void StartSending(string serverName) | Starts the monitor and the heartbeat loop. Called by ServerHandler after the server starts. |
void StopSending() | Stops the heartbeat loop and shuts the monitor down. |
3 private and internal methods
Used in
Members of other types that take, return or hold a ServerHeartbeat: