1 /* |
|
2 * Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: EAP-server and client definitions. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 20 % |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef EAPSERVERCLIENTDEF_H_ |
|
24 #define EAPSERVERCLIENTDEF_H_ |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 enum TEapPanic // both client-side and server-side - see category to distinguish |
|
29 { |
|
30 ECannotStartServer, |
|
31 EBadRequest, |
|
32 EBadDescriptor, |
|
33 EListenAlreadyListening, |
|
34 EErrorFromNonClientObject, |
|
35 EReceiveReceiveAlreadyActive, |
|
36 }; |
|
37 |
|
38 enum TEapRequests |
|
39 { |
|
40 EEapNone = 0, |
|
41 EEapCoreIfNew = 1, |
|
42 EEapPluginNew = 2, |
|
43 EEapSettingsNew = 3, |
|
44 EEapCoreProcessData = 4, |
|
45 EEapPluginProcessData = 5, |
|
46 EEapSettingsProcessData = 6, |
|
47 EEapCoreSendData = 7, |
|
48 EEapPluginSendData = 8, |
|
49 EEapSettingsSendData = 9, |
|
50 EEapIfReqReceive = 10, |
|
51 EEapIfCancelReceive = 11, |
|
52 EEapPacStoreNew = 12, |
|
53 EEapPacStoreProcessData = 13, |
|
54 EEapPacStoreSendData = 14, |
|
55 EWapiCoreIfNew = 15, |
|
56 EWapiSettingsNew = 16, |
|
57 EWapiCoreProcessData = 17, |
|
58 EWapiSettingsProcessData = 18, |
|
59 EWapiCoreSendData = 19, |
|
60 EWapiSettingsSendData = 20, |
|
61 }; |
|
62 |
|
63 //the server version. A version must be specifyed when creating a session with the server |
|
64 const TUint KEapMajorVersionNumber = 0; |
|
65 const TUint KEapMinorVersionNumber = 1; |
|
66 const TUint KEapBuildVersionNumber = 1; |
|
67 |
|
68 _LIT(KEapAuthServerSemaphore, "EapAuthServerSemaphore"); |
|
69 const TInt KMaxServerExe = 24; |
|
70 const TInt KEapShutdownInterval=5000000; // 5 seconds. |
|
71 const TInt KMaxCategoryLength = 16; |
|
72 const TInt KMaxEapData = 30000; |
|
73 const TInt KMaxEapMessageSlots = 50; |
|
74 |
|
75 #endif /* EAPSERVERCLIENTDEF_H_ */ |
|