networkprotocols/tcpipv4v6prt/inc/rawip.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2006-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 // rawip.h - Raw IP protocol
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @internalComponent
       
    21 */
       
    22 #ifndef __RAWIP_H__
       
    23 #define __RAWIP_H__
       
    24 
       
    25 #include <es_prot.h>
       
    26 #include <in_sock.h>
       
    27 #include <es_prot_internal.h>
       
    28 
       
    29 const TUint KProtocolInetRawIp	= 0xF02;
       
    30 
       
    31 //
       
    32 //	*****
       
    33 //	RAWIP
       
    34 //	*****
       
    35 //
       
    36 class CProtocolInet6Base;
       
    37 class RAWIP
       
    38 	{
       
    39 public:
       
    40 	// Implemented in PRT...
       
    41 	static CProtocolBase *NewL();
       
    42 	static void Identify(TServerProtocolDesc &aEntry);
       
    43 	// Implemented in SAP (and called from PRT NewSAPL)
       
    44 	static CServProviderBase *NewSAPL(TUint aSockType, CProtocolInet6Base *aProtocol);
       
    45 	};
       
    46 
       
    47 const TInt  KRAWIPMaxSockets		= KUnlimitedSockets;
       
    48 const TInt  KRAWIPMaxDatagramSize	= 0xffff-128;	// ...just pick some number...
       
    49 const TUint KRAWIPServiceTypeInfo	= ESocketSupport | ETransport | EPreferMBufChains | ENeedMBufs | EUseCanSend;
       
    50 const TUint KRAWIPServiceInfo		= KSIConnectionLess | KSIMessageBased | KSIBroadcast | KSIPeekData | KSIGracefulClose | KSIRequiresOwnerInfo;
       
    51 const TUint KRAWIPNameServiceInfo	= KNSNameResolution | KNSRequiresConnectionStartup; // | KNSServiceResolution | KNSInfoDatabase;
       
    52 //
       
    53 
       
    54 #endif