|
1 // Copyright (c) 2007-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 #ifndef TAVSRCSOCK_H |
|
17 #define TAVSRCSOCK_H |
|
18 |
|
19 #include "tavsrc.h" |
|
20 #include "tavsrcConsole.h" |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CActivePacketDropIoctl : public CActive |
|
25 { |
|
26 public: |
|
27 static CActivePacketDropIoctl* NewL(CActiveConsole* aLogConsole, RSocketArray aPendingSockets); |
|
28 ~CActivePacketDropIoctl(); |
|
29 void DoCancel(); |
|
30 void RunL(); |
|
31 void Start(); |
|
32 |
|
33 private: |
|
34 CActivePacketDropIoctl(CActiveConsole* aLogConsole, RSocketArray aPendingSockets); |
|
35 |
|
36 private: |
|
37 CActiveConsole* iLogConsole; |
|
38 RSocketArray iPendingSockets; |
|
39 TPckgBuf<TInt> iPacketsLostPkgBuf; |
|
40 }; |
|
41 |
|
42 class CActiveSockWriter : public CActive |
|
43 { |
|
44 public: |
|
45 static CActiveSockWriter* NewL(RSocket aSock, TAvdtpTransportSessionType aType); |
|
46 ~CActiveSockWriter(); |
|
47 void Send(); |
|
48 void DoCancel(); |
|
49 void RunL(); |
|
50 |
|
51 private: |
|
52 CActiveSockWriter(RSocket aSock); |
|
53 void ConstructL(TAvdtpTransportSessionType aType); |
|
54 |
|
55 private: |
|
56 RSocket iSock; |
|
57 CConsoleBase* iConsole; |
|
58 HBufC8* iSendBuffer; |
|
59 TAvdtpTransportSessionType iType; |
|
60 }; |
|
61 |
|
62 class CActiveSockReader : public CActive |
|
63 { |
|
64 public: |
|
65 static CActiveSockReader* NewL(RSocket aSock, TAvdtpTransportSessionType aType); |
|
66 ~CActiveSockReader(); |
|
67 void Start(); |
|
68 |
|
69 private: |
|
70 CActiveSockReader(RSocket aSock); |
|
71 void ConstructL(TAvdtpTransportSessionType aType); |
|
72 void DoCancel(); |
|
73 void RunL(); |
|
74 |
|
75 private: |
|
76 RSocket iSock; |
|
77 CConsoleBase* iConsole; |
|
78 HBufC8* iBuffer; |
|
79 TPtr8 iBufferDes; |
|
80 TSockXfrLength iLen; |
|
81 TAvdtpTransportSessionType iType; |
|
82 }; |
|
83 |
|
84 #endif // TAVSRCSOCK_H |