Server
===

There are five main server daemons that run to handle the fleet of buses.
Here is a brief overview

| Name | Default Port | Description |
|------|--------------|-------------|
| `avls_server` | `2857` | Receives automatic vehicle locations sytem (AVLS) information from buses and stores in database |
| `billing_server` | `2455`| Updates database pass information based on usage communication from buses |
| `buspass_server` | `7277`  | Updates bus units with most recent passes. Updates with delta changes or whole flush of active pass database. |
| `hello_daemon` | `3566` | Responds to 'hello' requests from tunnel management processes on the bus unit |
| `version_daemon` | `8377` | Responds to bus units requests for most recent 'config' and 'firmware' packages |


| Name | Tables Affected |
|------|-----------------|
| `avls_server` | `avls_data` |
| `billing_server` | `billing_log`, `active_rider_table`, `user_card`, `user_pass`, `rule_class`, `diagnostic_log` |
| `buspass_server` | `active_rider_table` |
| `version_daemon` | `bus_checkin_log`, `udpate_level` |


