Client Server message passing

Login to reply to this topic.
Sat, 2008-04-19 14:16
Joined: 2008-03-18
Forum posts: 32

Hi,

I want to send message to server from client program, if there are multiple messages then i need to queue the message in the server and send it to other process , can anyone please let me know the sample code for queueing message in server,using client-server architecture.

Thanks in Advance....
Smiling


NEWBIE OF SYMBIAN


Mon, 2008-04-21 10:18
Joined: 2004-11-29
Forum posts: 1133
Re: Client Server message passing

If you are using CServer2 and CSession2 (standard symbian cli-srv IPC), messages will be queued for you.

If your message are large, or if you have very many of them that need to be queued up, RMsgQueue might be what you are looking for.

Sorry, don't have any example code to conjure up, check the SDK examples on IPC.

Mon, 2008-04-21 12:01
Joined: 2008-03-18
Forum posts: 32
Re: Client Server message passing

Thank you for the Info, I am looking for sample code for passing message from the client to the server and store the messages in server and send it across the process..sample source code for the same will really be appreciated.

Thank you.................


NEWBIE OF SYMBIAN

Tue, 2008-04-22 10:05
Joined: 2007-09-03
Forum posts: 25
Re: Client Server message passing

The message passing between client and server is done using the SendRecieve() primitive. You can find the explanation of the same @ http://www.symbian.com/developer/techlib/v70sdocs/doc_source/devguides/cpp/Base/InterProcessCommunication/ClientServerOverview.guide.html
. The example code is @ http://www.symbian.com/developer/techlib/v8.1adocs/doc_source/examples/N1034A/ClientServerExampleCodes.guide.html#InterProcessCommunicationEx%2eSimpleClient.
Hope this helps.

Regards,
Anirudh

  • Login to reply to this topic.