1 / 7

PIKA Technologies Inc. RPC Client/Server Application Sample October 2009

PIKA Technologies Inc. RPC Client/Server Application Sample October 2009. What is it?. Sample Application developed in C++ Can be used as a Client/Server framework Works on GP HMP 2.7 platforms (Windows). Overall Architecture Description. There are 3 main project in the rpcSample solution

dreama
Télécharger la présentation

PIKA Technologies Inc. RPC Client/Server Application Sample October 2009

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PIKA Technologies Inc.RPC Client/Server Application Sample October 2009

  2. What is it? Sample Application developed in C++ Can be used as a Client/Server framework Works on GP HMP 2.7 platforms (Windows)

  3. Overall Architecture Description • There are 3 main project in the rpcSample solution • gpaoh • Contains the gpaoh.idl file. The Midl compiler creates stub code for the gpaohServer and gpaohClient applications can communicate which each other. • gpaohServer • The server responds to the clients request. It also contains an event queue mechanism to distribute events to each client. • gpaohClient • The client makes remote procedure calls to the server via the APIs defined in the gpaoh.idl file.

  4. Getting Started • Install the PIKA GP HMP API on a PC ( 2.7.x or newer ) as described in the Getting Started Guide • Run gpconfig and configure the GP system • Download the rpcSample solution • If using SIP modify the following parameters • #define DEFAULT_FROM_FIELD "GP_SIP_USER"; // From field for outgoing calls • #define DEFAULT_TO_FIELD “sip@192.168.1.2"; // To field for outgoing calls , ie sip phone • #define DEFAULT_DISPLAY_FIELD "me"; // Display field for outgoing calls • Run gpaohServer • Run multiple instances of gpaohClient • Type “g” to retrieve group information • Type “m” to place an outgoing call based on the group information

  5. Server Application thread Diagram PIKA Driver PKX_SYSTEM_XXX Main Thread PKX_GROUP_XXX PKX_CHANNEL_XXX Spawn Thread Event Thread PKX_SYSTEM_WaitOnEvent Incoming Event

  6. Client Application thread Diagram RPC PIPE Open Main Thread OpenEventHandler PKCS_SYSTEM_XXX PKCS_GROUP_XXX PKCS_CHANNEL_XXX Spawn Thread Event Thread PKCS_SYSTEM_WaitOnEvent Incoming Event

  7. Where can I find it? • The Source code is located under: • http://svn.pikatech.com/customercare/trunk/samples/rpcSample/

More Related