Download presentation
Presentation is loading. Please wait.
Published byEstella Sullivan Modified over 9 years ago
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 Main Thread Event Thread PIKA Driver Spawn Thread Incoming Event PKX_SYSTEM_XXX PKX_GROUP_XXX PKX_CHANNEL_XXX PKX_SYSTEM_WaitOnEvent
6
Client Application thread Diagram Main Thread Event Thread Spawn Thread Incoming Event PKCS_SYSTEM_XXX PKCS_GROUP_XXX PKCS_CHANNEL_XXX PKCS_SYSTEM_WaitOnEvent RPC PIPE Open OpenEventHandler
7
Where can I find it? The Source code is located under: http://svn.pikatech.com/customercare/trunk/samples/rpcSample/http://svn.pikatech.com/customercare/trunk/samples/rpcSample/
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.