/
Host Connector

Host Connector

Introduction

The Host Connector is one of the StockControl Agents.

The Host Connector itself does nothing, except providing the developer of the host driver with the necessary classes to use the system. The static globals Global.DB, Log and Init are available and initialised.

Initialisation

When the Host Connector is started, it will scan the drivers/ folder for .dll files. If it finds one and there are classes inside that implement IHostDriver, it will add it to the dropdown list on the form. When a driver is configured in the Sapphire Host Connector.ini file, it will instantiate it and call Loop in its own thread.

Caveats

  • When Loop throws an exception, it will be caught by the Host Connector and logged (“Exception thrown in host driver”). This could give the impression the Host Connector is still running, but it doesn’t. So make sure you keep the Loop uninterruptible.

  • When changing the active driver, you need to restart the connector. Pressing Start/Stop might not work correctly (those buttons should be, or are already, removed).

Related content

Warehouse Management & Structure
Warehouse Management & Structure
Read with this
Software Components
Software Components
More like this
Older Documentation
Older Documentation
Read with this
Pocket Connector
More like this
Introduction
Read with this
Folder Structure
More like this