OpenTTCN/2.56.0/ANSI C SDK library reference/ISL/otInitAdapter

From OpenTTCN

Jump to: navigation, search

otInitAdapter

The otInitAdapter function performs basic initialization actions upon startup of a pluggable adapter component and resolves a set of references necessary to communicate with OpenTTCN Tester Runtime Environment (OTRE) services.

int otInitAdapter(
    const char* s);

Parameters

s

   

Location of OTRE services in the network.

Return values

Returns 0 upon success, non-zero in case of failure. Possible return error codes are the same as for otResolveInitialReferences().

Remarks

This function is a simplified and streamlined version of otResolveInitialReferences() that can be used instead of it on most occasions whenever calling the latter is needed.

The s parameter has the following format: [IPADDR[:PORT]]. If IP address or port is missing, then the default values for these are assumed. The following are examples of the s parameter value that are acceptable:

Value of the s parameter What it defines

"127.0.0.1:5500"

IP address 127.0.0.1 and port 5500

"127.0.0.1"

IP address 127.0.0.1 and default port 5500

""

default IP address 127.0.0.1 and default port 5500

0

defines default IP address 127.0.0.1 and default port 5500

Requirements

Header

<isl/TTCN3.h>

Library

openttcn-isl-mt.lib

Compatibility

OpenTTCN ANSI C SDK 2.x and higher

Views
Personal tools