equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef __CSOCKETREADER_H |
|
23 #define __CSOCKETREADER_H |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <comms-infras/eintsock.h> |
|
27 |
|
28 class CBnepLink; |
|
29 class RMBufChain; |
|
30 |
|
31 /** |
|
32 @file |
|
33 @internalComponent |
|
34 Active objects to handle socket reads. |
|
35 */ |
|
36 |
|
37 |
|
38 |
|
39 /** |
|
40 Encapsulate read access to a socket. |
|
41 */ |
|
42 NONSHARABLE_CLASS(CSocketReader) : public CActive |
|
43 { |
|
44 public: |
|
45 ~CSocketReader(); |
|
46 static CSocketReader* NewL (RInternalSocket& aSocket, CBnepLink& aOwner); |
|
47 void Read (); |
|
48 |
|
49 private: |
|
50 CSocketReader (RInternalSocket& aSocket, CBnepLink& aOwner); |
|
51 void ConstructL (); |
|
52 void DoCancel (); |
|
53 void RunL (); |
|
54 |
|
55 private: |
|
56 RInternalSocket& iSocket; |
|
57 CBnepLink& iBnepLink; |
|
58 RMBufChain iRecvMsg; |
|
59 }; |
|
60 |
|
61 |
|
62 #endif |