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 APIs for Linux systems (C and C++)
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 have no licenses per se.  However, when custom programs use these APIs to make TCP connections to the Cogent DataHub running in Windows, each concurrent TCP connection requires its own TCP Link License.

DataHub APIs for Linux

The Cogent C API lets you write high-speed clients that can interact with the Cascade DataHub and other Cogent programs for Linux. Interprocess communication relies on Send/Receive/Reply message passing. In Linux, this is supported by Cogent’s SRR Module.The DataHub API for C++ is also provided in the Cogent C API archive and is supported under Linux. 

The license for the Cascade DataHub in Linux allows multiple API connections; no additional licenses are required.

More Information

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