Namespaces
Variants
Actions

Inter Process Communication in Symbian

Jump to: navigation, search
Article Metadata

Article
Created: savaj (08 Mar 2009)
Last edited: hamishwillee (25 Jul 2012)

Contents

Inter Process Communicaton

Sometime communication between two processes requires to accomplish a task. Symbian OS provides client-server architecture for IPC.

Read the following sections for more theoretical explanation.

Lets take an example of communication between two applications, ClientApplication and ServerApplication.


ClientApplication

  • Create a class and derive it from RSessionBase.
  • Create Session with server using RSessionBase::CreateSession(). //for creating session server must be running on there side.
  • Send messege through RSessionBase::SendReceive(). // first parameter is message id, second is message.



ServerApplication

  • Create a class and derive it from CServer2 and CSession2.
  • Start a server using CSever2::StartL().
  • Create a session with CServer2::NewSessionL().
  • Receive message in CSession2::ServiceL().



Note: For second edition use CServer,CSharableSession instead of CSever2 and CSession2.

External Links.

InterProcessCommunicationOverview And ClientServerOverview


Internal Links.

This page was last modified on 25 July 2012, at 12:19.
169 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved