networkingtestandutils/ipprobe/inc/prt.h
changeset 25 d15a50675083
parent 0 af10295192d8
child 58 8d540f55e491
--- a/networkingtestandutils/ipprobe/inc/prt.h	Fri May 14 17:24:38 2010 +0300
+++ b/networkingtestandutils/ipprobe/inc/prt.h	Thu May 27 14:26:17 2010 +0300
@@ -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