Download User`s Manual
Transcript
Table of Contents 1 Introduction....................................................................................................................4 1.1 Remote Procedure Calls (RPC).................................................................................4 1.2 A quick example.......................................................................................................5 1.3 Main Features..........................................................................................................6 2 Building an application...................................................................................................7 2.1 Defining a set of remote procedures.......................................................................8 2.1.1 IDL Syntax and mapping to C++.........................................................................9 2.1.2 Example...........................................................................................................15 2.2 Generating specific remote procedure call support code.....................................15 2.2.1 FASTRPCGEN Command Syntax:......................................................................15 2.2.2 Server side.......................................................................................................16 2.2.3 Client side........................................................................................................16 2.3 Server implementation..........................................................................................16 2.3.1 API...................................................................................................................17 2.3.2 Exceptions.......................................................................................................17 2.3.3 Example...........................................................................................................18 2.4 Client implementation...........................................................................................18 2.4.1 API...................................................................................................................18 2.4.2 Exceptions.......................................................................................................19 2.4.3 Example...........................................................................................................19 3 Advanced concepts.......................................................................................................20 3.1 Network transports................................................................................................20 3.1.1 TCP Transport..................................................................................................20 3.2 One-way calls.........................................................................................................22 3.3 Threading Server strategies...................................................................................22 3.3.1 Single thread strategy......................................................................................22 3.3.2 Thread Pool strategy.......................................................................................23 3.3.3 Thread per request strategy............................................................................23 4 HelloWorld example.....................................................................................................24 4.1 Writing the IDL file.................................................................................................24 4.2 Generating specific code........................................................................................24 4.3 Client implementation...........................................................................................25 4.4 Server implementation..........................................................................................25 4.5 Build and execute...................................................................................................26 3