DataHub APIs

Connect custom programs

Application Programming Interface

The DataHub APIs are a fully open set of application development interfaces that allow you to connect custom programs to the Cogent DataHub in Windows and Cascade DataHub in Linux. These APIs are provided with both object code and source code examples and set out a very simple set of commands that allow you to both read and write data to the DataHub.

C, C++, .NET and Java APIs

The following Cogent APIs are available:

  • The DataHub APIs for Windows systems (C++, Java and .NET)
  • The Cogent C API for Linux systems
DataHub APIs for Windows

The DataHub API for C++ lets you write programs in C++ that connect to the DataHub over TCP, namely LAN, WAN, or the Internet.  The DataHub API for Java lets you write programs in Java that connect to the DataHub over TCP, namely LAN, WAN, or the Internet.  In addition, it lets you create web browser applications that receive and display live data from the DataHub.  The DataHub API for .NET lets you write programs in .NET that connect to the DataHub over TCP, namely LAN, WAN, or the Internet.  This API is implemented in C#, but can be used with any .NET language.

The DataHub APIs for Windows do not require a license.  However, if you create programs using these APIs that connect to the Cogent DataHub, then each concurrent connection requires its own TCP Link License.

Programs using the DataHub APIs for Windows to make connections to the Cascade DataHub in Linux also require a TCP Link License for each concurrent connection.

Cogent C API for Linux

The Cogent C API lets you write programs that can interact with the Cascade DataHub for Linux.  This interprocess communication is implemented using Send/Receive/Reply message passing, which is supported in Linux by the Cogent SRR Module.

The license for the Cascade DataHub for Linux allows unlimited local SRR connections (using the Cogent C API), without the need for additional licenses.

More Information

For more information on the various DataHub and Cogent APIs, please view our online documentation.