Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: please provide sample code for exposed API in C

please provide sample code for exposed API in C 03 May 2017 06:22 #7874

  • sandeep
  • sandeep's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
i want to call C or C++ API for ttcn

what format i have to write C++ or C Exposed API and how to call in ttcn

please provide me sample code

ex: that API should return some value and print "this is C++ test API "
The administrator has disabled public write access.

please provide sample code for exposed API in C 04 May 2017 08:14 #7875

Hi Sandeep,

your question is too generic to give a specific answer to it.

For classical API calls the procedure-based communication is used. Please see clause 22.3 of Part-1 of the TTCN-3 standard (ES 201 873-1, www.ttcn-3.org/index.php/downloads/standards). It also shows examples. Note that TTCN-3 is an abstract language, i.e. in TTCN-3 you only define the signatures for your API, you can raise a call, wait for the response or exception etc., but the actual implementation shall be done in an adapter that will actually access your API. As I don't know of the internals of GTR, it is not possible to give advice regarding the actual implementation.
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin