C API questions

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode

Subject: RE: C API questions
Replied by: Joseph Clarke on 13-10-2013 01:59:41 PM
1. Why  the DPSS is supported only for C?

Mainly for performance reasons.  Many of the DPSS use cases will require a consider performance premium, and C is best-geared to provide that.  However, I have been quite successful in using Java+JNI to interface with the C API and the DPSS.  If you want to use Java for the main part of your application, you can use JNI to connect to the bits that require the DPSS.

2. In the linking process why is -lrt linker option is mandatory (For the Shared libs ) ?

The realtime extensions library is used by the onePK functions, and thus must be linked.

3. At the basic " Connecting to Network Element " I didnt know which header files to include so I included
#include "onep_core_services.h"
#include "onep_constants.h
as In the "HelloElement" tutorial.It seems that the "create_session_config" and "disconnect_network_element" functions are not referenced in the header files. Is the documintation outdated or I miss something ?

The tutorials have a shim file that contains some utility functions in SessonElement/
session_element_util.c.  The Makefile brings that utility file into the build.
This document was generated from CDN thread

Created by: itay dominits on 13-10-2013 10:40:18 AM
Hey 

Up till now I worked with the java API, and know started working with the C ones.
So I got a few questions :

1. Why  the DPSS is supported only for C?
2. In the linking process why is -lrt linker option is mandatory (For the Shared libs ) ?
3. At the basic " Connecting to Network Element " I didnt know which header files to include so I included 
#include "onep_core_services.h"
#include "onep_constants.h
as In the "HelloElement" tutorial.It seems that the "create_session_config" and "disconnect_network_element" functions are not referenced in the header files. Is the documintation outdated or I miss something ?

sorry for the long thread
thank you


Attachments

    Outcomes