EXEC2RPC (JANUS DEFINE parameter): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
(No difference)

Revision as of 23:00, 6 December 2011

<section begin="desc" />Convert language requests to RPCs on OPENSERV ports<section end="desc" />

EXEC2RPC is a parameter on JANUS DEFINE, which defines and sets characteristics of a Janus port. See the List of JANUS DEFINE parameters.

This parameter indicates that language requests should be converted to RPCs. The types of language requests that can be translated into an RPC is described in the Janus Open Server Reference Manual. EXEC2RPC implies RPCONLY. That is, it is not possible to set up a port so that Janus attempts to convert language requests into RPCs but if the attempt fails the language request is then made available to the User Language via $SRV_LANGGET. If a language request is converted to an RPC, $SRV_WAIT returns a 1 indicating that an RPC has been received. Thus, it is impossible for a User Language application on an EXEC2RPC port to tell if the current request was a "true" RPC or one that was generated via EXEC2RPC.

Valid only for OPENSERV ports.

References

See: List of Janus commands | List of JANUS DEFINE parameters.