|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // RAsyncConnect Client side header |
|
15 // Declares the Symbian OS RAsyncConnectBase class as a base for client side API |
|
16 // of servers supporting startup synchronisation using Rendezvous |
|
17 // |
|
18 // |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 */ |
|
24 |
|
25 #include "CS_AsyncConnect.h" |
|
26 #include <e32math.h> |
|
27 |
|
28 |
|
29 EXPORT_C void RAsyncConnectBase::CreateSession(const TDesC& aServerName, const TVersion& aVersion, TInt aAsyncMessageSlots, TRequestStatus& aStatus) |
|
30 /** |
|
31 * The RAsyncConnectBase::Connect method |
|
32 * |
|
33 * Connect the Handle to the Server |
|
34 * |
|
35 * @internalTechnology |
|
36 * |
|
37 * @param aServerName name of the daemon, no file extension |
|
38 * @param aVersion version of the API |
|
39 * @param aAsyncMessageSlots number of slots in server queue (apply to all clients) |
|
40 * @param aStatus user request |
|
41 */ |
|
42 { |
|
43 TInt err = RSessionBase::CreateSession(aServerName, aVersion, aAsyncMessageSlots, EIpcSession_Unsharable, NULL, &aStatus); |
|
44 if (KErrNone != err) |
|
45 { |
|
46 TRequestStatus* p = &aStatus; |
|
47 User::RequestComplete(p, err); |
|
48 } |
|
49 } |
|
50 |