The CRfcServerApp Class 

Class Summary

The CRfcServerApp class is defined in CRfcSApp.h. (Copy from User Guide.)

The CRfcServerApp class encapsulates the initialization, running (listening for requests from R/3 and dispatching to corresponding functions) and termination of an RFC server application. An application built with the framework provided by the class library must have one and only one object of the class CRfcServerApp, which is called the application object.

Construction

CRfcServerApp

Constructs a server application object

Operations

AddServerFunction

Adds a server function object to the application object

Clone

Makes a dynamic copy of a CRfcServerApp object or a derived class object

Dispatch

Function to be called to process the next RFC request

GetConnection

Obtains the connection object associated with the application object

GetFunctionCount

Obtains the total number of server functions registered with this application object

GetName

Obtains the name of the called function

GetServerFunction (by Index)

Obtains a server function object by index

GetServerFunction (by Name)

Obtains a server function object by name

InstallFunction

Installs a server function written in C with the RFC library

OnIdle

Things to do when waiting for incoming requests

ReceiveData

Receives data from the R/3 System

RemoveServerFunction (by Index)

Removes a server function object from the application object by index

RemoveServerFunction (by Name)

Removes a server function object from the application object by name

ReturnCall

Sends data to R/3 systems

Run

Main loop of the server application

SetConnection

Associates a connection object with the application object

virtual void ExitInstance (void); ¾ Stop the server application

Stops the server application