diff -r 7e41d162e158 -r abbed5a4b42a networkingtestandutils/ipprobe/inc/prt.h --- a/networkingtestandutils/ipprobe/inc/prt.h Thu Aug 19 11:25:30 2010 +0300 +++ b/networkingtestandutils/ipprobe/inc/prt.h Tue Aug 31 16:45:15 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 +#include #include #include + #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