diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-D4DD2109-3A5B-557D-BCF2-89691CDA5C75.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-D4DD2109-3A5B-557D-BCF2-89691CDA5C75.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,48 @@ + + + + + +Client +Server Example CodeExample code that explains how to use client server framework. + +
Simple client +server example

Description

This pair of examples +shows a simple use of the client server interface. The client, SimpleClient, has a single session with the server SimpleServer, implemented as a statically linked DLL.

Download

Click +on the following link to download the example: ClientServerSimple.zip

Click the following +link to download additional files: CommonFramework.zip

Click browse ClientServerSimple to view the example

Click browse CommonFramework to view additional files.

SimpleClient: simple client

Build +Notes

The server must be built before the client. This requirement +is specified in the component description file, bld.inf. SimpleServer.mmp is +listed before SimpleClient.mmp. Build activities relating +to particular .mmp files are carried out in the order +in which they are listed in the bld.inf file.

Class +summary

RSessionBase CServer2 CSession2

+
Complex client +server example

This pair of examples shows a more complex use of +the client server interface. The server can support multiple subsessions within +a single session, represented by the code in ComplexServer***; ComplexClient*** is +the corresponding client code.

    +
  • Complex client

  • +
  • Complex server.

  • +

Download

Click on the following link to download the +example: ClientServerComplex.zip

Click the following +link to download additional files: CommonFramework.zip

Click browse ClientServerComplex to view example.

Click browse CommonFramework to view additional files.

ComplexClient: client requiring +multiple server subsessions

Build Notes

The server +must be built before the client. This requirement is specified in the component +description file bld.inf. ComplexServer.mmp is +listed before ComplexClient.mmp. Build activities relating +to particular .mmp files are carried out in the order +in which they are listed in the bld.inf file.

Class +summary

RSessionBase RSubSessionBase CServer2 CSession2 CObject CObjectCon CObjectConIx

Security +issues

The example does not demonstrate security issues. Its purpose +is just to demonstrate the mechanics of the client server relationship.

+
\ No newline at end of file