cc68a136 |
1 | \r |
2 | // needed for client interface\r |
3 | #include "../version.h"\r |
4 | #include "../ClientServer.h"\r |
5 | #include "SimpleClient.h"\r |
6 | \r |
7 | \r |
8 | // Connect to the server - default number of message slots = 4\r |
9 | TInt RServSession::Connect()\r |
10 | {\r |
11 | TInt r=CreateSession(KServerName,Version(),kDefaultMessageSlots);\r |
12 | return(r); \r |
13 | }\r |
14 | \r |
15 | \r |
16 | // Return the client side version number.\r |
17 | TVersion RServSession::Version(void) const\r |
18 | {\r |
19 | return(TVersion(KPicoMajorVersionNumber,KPicoMinorVersionNumber,0));\r |
20 | }\r |
21 | \r |
22 | \r |
23 | TInt RServSession::SendReceive(TInt aFunction, TAny* aPtr) const\r |
24 | {\r |
25 | return RSessionBase::SendReceive(aFunction, aPtr);\r |
26 | }\r |
27 | \r |
28 | \r |
29 | TInt RServSession::Send(TInt aFunction, TAny* aPtr) const\r |
30 | {\r |
31 | return RSessionBase::Send(aFunction, aPtr);\r |
32 | }\r |
33 | \r |