INTERRECV

System Testing Test Script Language.

Syntax

INTERRECV(<integer_pointer>)

INTERRECV(<string_pointer>, <buffer size>)

<integer_pointer> indicates the memory location of a 32-bit integer message.

<string_pointer> points to a static or allocated memory zone containing the incoming message.

<buffer size> is the size of the memory zone starting at <string_pointer>.

Description

The INTERRECV statement allows the virtual tester to receive a simple message sent by an INTERSEND statement from another virtual tester.

Received messages are stored in static or allocated memory zone indicated by <integer_pointer> or <string_pointer>.

The message can be either an integer or a string. However if the message type expected by the INTERRECV mismatches the actual message type sent by INTERSEND, System Testing for C attempts to convert the message.

Example

INSTANCE JUPITER:

   INTERSEND( "How many messages did you receive from SUT?" , "SATURN_0" )

   INTERRECV( &transmitted_int)

END INSTANCE

 

INSTANCE SATURN:

   INTERRECV( buffer, 1024 )

   INTERSEND( 2 , "JUPITER_0" )

END INSTANCE

Related Topics

INTERSEND(), ATL_OCCID