Client Server message passing
| Sat, 2008-04-19 14:16 | |
|
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.... NEWBIE OF SYMBIAN |
|






Forum posts: 1133
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.
Forum posts: 32
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
Forum posts: 25
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