networkingtestandutils/ipprobe/inc/prt.h
changeset 0 af10295192d8
child 21 abbed5a4b42a
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2004-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 // prt.h - Packet Probe Hook
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @internalComponent
       
    21 */
       
    22 #ifndef __PROBE_PRT_H
       
    23 #define __PROBE_PRT_H
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <es_sock.h>
       
    27 #include <nifman.h>
       
    28 
       
    29 #include "family.h"
       
    30 #include "in_bind.h"
       
    31 #include "posthook.h"
       
    32 
       
    33 class CProviderProbe;
       
    34 
       
    35 class CProtocolProbe : public CProtocolPosthook
       
    36 {
       
    37 	friend class CProviderProbe;
       
    38 	CProtocolProbe(TUint aId);
       
    39 	virtual ~CProtocolProbe();
       
    40 public:
       
    41 	virtual void InitL(TDesC& aTag);
       
    42 	virtual void StartL();
       
    43 	virtual void Identify(TServerProtocolDesc *aDesc) const;
       
    44 	static void FillIdentification(TServerProtocolDesc& aDesc, TUint aId);
       
    45 	static CProtocolProbe *NewL(TUint aId);
       
    46 
       
    47 	virtual void NetworkAttachedL();
       
    48 	virtual TInt Send(RMBufChain &aPacket, CProtocolBase* aSrc);
       
    49 	virtual void Process(RMBufChain &aPacket, CProtocolBase* aSrc);
       
    50 	
       
    51 	virtual CServProviderBase* NewSAPL(TUint aProtocol);
       
    52 	void CancelSAP(const CServProviderBase* aSAP);
       
    53 protected:
       
    54 	void Deliver(RMBufChain &aPacket);
       
    55 	const TUint iId;
       
    56 	CProviderProbe *iList;
       
    57 };
       
    58 
       
    59 #endif