equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 |
17 |
18 |
18 |
19 /** |
19 /** |
20 @internalComponent |
20 @internalComponent |
21 */ |
21 */ |
|
22 |
22 #ifndef __PROBE_PRT_H |
23 #ifndef __PROBE_PRT_H |
23 #define __PROBE_PRT_H |
24 #define __PROBE_PRT_H |
24 |
25 |
25 #include <e32std.h> |
26 #include <e32std.h> |
|
27 #include <f32file.h> |
26 #include <es_sock.h> |
28 #include <es_sock.h> |
27 #include <nifman.h> |
29 #include <nifman.h> |
|
30 |
28 |
31 |
29 #include "family.h" |
32 #include "family.h" |
30 #include "in_bind.h" |
33 #include "in_bind.h" |
31 #include "posthook.h" |
34 #include "posthook.h" |
32 |
35 |
47 virtual void NetworkAttachedL(); |
50 virtual void NetworkAttachedL(); |
48 virtual TInt Send(RMBufChain &aPacket, CProtocolBase* aSrc); |
51 virtual TInt Send(RMBufChain &aPacket, CProtocolBase* aSrc); |
49 virtual void Process(RMBufChain &aPacket, CProtocolBase* aSrc); |
52 virtual void Process(RMBufChain &aPacket, CProtocolBase* aSrc); |
50 |
53 |
51 virtual CServProviderBase* NewSAPL(TUint aProtocol); |
54 virtual CServProviderBase* NewSAPL(TUint aProtocol); |
52 void CancelSAP(const CServProviderBase* aSAP); |
55 void CancelSAP(const CServProviderBase *aSAP); |
53 protected: |
56 protected: |
54 void Deliver(RMBufChain &aPacket); |
57 void Dump(RMBufChain &aPacket); |
|
58 void LibcapDumpFileHeader(); |
|
59 void LibcapDump(const TDesC8& aBuffer, TUint32 aTimeStampSecs, TUint32 aTimeStampMicros); |
|
60 void Queue(RMBufChain &aPacket); |
|
61 static TInt DumpCb(TAny* aThisPtr); |
|
62 void DumpQueuedPackets(); |
|
63 |
|
64 protected: |
|
65 TTime iTimeOrigin; |
55 const TUint iId; |
66 const TUint iId; |
56 CProviderProbe *iList; |
67 CProviderProbe *iList; |
|
68 CAsyncCallBack iDumpCb; |
|
69 RMBufPktQ iQueue; |
|
70 RFs iFs; |
|
71 RFile iFile; |
|
72 RBuf8 iBuf; |
|
73 TBool iFileServerOpen; |
|
74 TBool iFileOpen; |
|
75 TBool iBufCreated; |
57 }; |
76 }; |
58 |
77 |
59 #endif |
78 #endif |