servicediscoveryandcontrol/pnp/test/upnp/Server/AppProtIntf/inc/app_protintf_udp.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-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 //
       
    15 
       
    16 #ifndef __APP_PROTINTF_UDP_H__
       
    17 #define __APP_PROTINTF_UDP_H__
       
    18 
       
    19 #include "app_protintf_base.h"
       
    20 #include <appprotintf/app_protintf_msgs.h>
       
    21 
       
    22 class CApplicationProtocolIntfUdp : public CApplicationProtocolIntfBase
       
    23 	{
       
    24 	public:
       
    25 	static CApplicationProtocolIntfBase* NewL ( TInt aPort );
       
    26 	~CApplicationProtocolIntfUdp();
       
    27 	inline virtual TUint Protocol () const;
       
    28 
       
    29 	protected:
       
    30 	virtual void ReceivedL ( const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage );	
       
    31 
       
    32 	private:
       
    33 	CApplicationProtocolIntfUdp ( TInt aPort );
       
    34 	
       
    35 	virtual TInt Startup ();
       
    36 	virtual void Shutdown ();
       
    37 		
       
    38 	virtual void RecvFromComplete ( RMBufChain& aData, const TSockAddr& aAddr );
       
    39 
       
    40 	private:	
       
    41 	TAppProtAddr	iMulticastAddr;	
       
    42 	};
       
    43 	
       
    44 TUint CApplicationProtocolIntfUdp::Protocol () const
       
    45 	{
       
    46 	return KProtocolInetUdp;
       
    47 	}
       
    48 	
       
    49 #endif // __APP_PROTINTF_UDP_H__