--- a/networkingtestandutils/ipprobe/inc/prt.h Mon May 03 13:58:16 2010 +0300
+++ b/networkingtestandutils/ipprobe/inc/prt.h Tue Jun 29 19:20:22 2010 +0530
@@ -1,4 +1,4 @@
-// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -19,13 +19,16 @@
/**
@internalComponent
*/
+
#ifndef __PROBE_PRT_H
#define __PROBE_PRT_H
#include <e32std.h>
+#include <f32file.h>
#include <es_sock.h>
#include <nifman.h>
+
#include "family.h"
#include "in_bind.h"
#include "posthook.h"
@@ -49,11 +52,27 @@
virtual void Process(RMBufChain &aPacket, CProtocolBase* aSrc);
virtual CServProviderBase* NewSAPL(TUint aProtocol);
- void CancelSAP(const CServProviderBase* aSAP);
+ void CancelSAP(const CServProviderBase *aSAP);
protected:
- void Deliver(RMBufChain &aPacket);
+ void Dump(RMBufChain &aPacket);
+ void LibcapDumpFileHeader();
+ void LibcapDump(const TDesC8& aBuffer, TUint32 aTimeStampSecs, TUint32 aTimeStampMicros);
+ void Queue(RMBufChain &aPacket);
+ static TInt DumpCb(TAny* aThisPtr);
+ void DumpQueuedPackets();
+
+protected:
+ TTime iTimeOrigin;
const TUint iId;
CProviderProbe *iList;
+ CAsyncCallBack iDumpCb;
+ RMBufPktQ iQueue;
+ RFs iFs;
+ RFile iFile;
+ RBuf8 iBuf;
+ TBool iFileServerOpen;
+ TBool iFileOpen;
+ TBool iBufCreated;
};
#endif