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

TOPIC: TRI Platform Adapter: External Functions

TRI Platform Adapter: External Functions 28 Feb 2003 14:02 #6417

Hi,

I have a question regarding the function "triExternalFunction".

In the standard, it says:

"For each external function specified in the TTCN-3 ATS the PA shall
implement the behaviour. On invocation of this operation the PA shall invoke
the function indicated by the identifier functionId. It shall access the
specified in and inout function parameters in parameterList, evaluate the
external function using the values of these parameters, and compute values
for inout and out parameters in parameterList. The operation shall then
return encoded values for all inout and out function parameters, the
distinct value of null for all in parameters, and the encoded return value
of the external function."

For Java, this is fairly clear.

But for C, some questions remain open:
a) How should the function get rid of the "in" binary strings in the
parameter list.
Which memory deallocation function should be called for them, if any?
b) How should the function allocate memory for the "out" parameters and the
return value? Does TRI guarantee, that the memory will be deallocated?

Everything would be clear, if there existed a callback function should be
called
with the return parameters. That function would then copy the parameters for

later use in the TTCN-3 Runtime library.

Regards,
Matthias Jung

--
Tau Generation2 - Development Visualized. Productivity Realized.
Learn more about Telelogic's new system and software development
solution at: www.taug2.com.


Dr. Matthias Jung
Application Development
Telelogic Deutschland GmbH, Otto-Brenner-Str. 247 , 33604 Bielefeld, Germany
Phone: +49(521)14503-33
Fax: +49(521)14503-50
Mail: This email address is being protected from spambots. You need JavaScript enabled to view it.


Telelogic - Putting you ahead in development!

The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin