Run 

Purpose

Main loop of the server application.

Syntax

RFC_RC Run(void);

Win32 Only

RFC_RC Run(int nThreads=0);

Argument

nThreads, where this is the number of child threads that the class library will create during the main loop of the server application.

Return Value

RFC_FAILURE or nothing if the server process is completed without error.

Exceptions

Throws RFC_ERROR_INFO for errors during getting function name, sending or receiving data.

Throws const char* for memory exceptions.

Description

Call this function when you are ready to process all incoming calls. You must perform the following tasks before you call this function:

You can also call this function to run a multi-threading Microsoft Windows 32-bit application. If you do not enter an argument or enter a value of zero in the nThreads parameter, the RFC_RC Run(int nThreads=x) function is equivalent to the Run(void) function.

Related Information

AddServerFunction

OnIdle