OpenTP1 Version 7 Programming Reference C Language
Create a service function (MHP)
Format
ANSI C, C++
void function-name (void) { Service processing } |
K&R C
void function-name () { Service processing } |
Description
The MHP service function executes a service and returns the execution results. When the MCF receives a message, the MHP having the service function that corresponds to the application name is started.
Create the MHP service function in the above format as required. The service function name corresponds to the entry point name of the service function. Specify this correspondence in the user service definition of the process that executes the service function.
The correspondence between the service name and the application name is specified in the MCF application definition.
Argument
None
Notes on service function processing
dc_rpc_open()
dc_rpc_close()
dc_mcf_open()
dc_mcf_close()
dc_rpc_mainloop()
dc_mcf_mainloop()
Also, do not use exit() in the service function. The UAP operation is not ensured if any of the functions or exit() is used
Return value
No return value. Specifying -1 as a return value does not request rollback processing.
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.