servicediscoveryandcontrol/pnp/test/upnp/unittests/te_serverbase/inc/es_dummy.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #if !defined (__ES_DUMMY_H__)
       
    21 #define __ES_DUMMY_H__
       
    22 
       
    23 #include <e32def.h>
       
    24  #include <es_sock.h>
       
    25 
       
    26 const TUint KDummyIoctlCheckStarted=0x000000010;
       
    27 const TUint KDummyIoctlCheckBound=0x00000011;
       
    28 const TUint KDummyIoctlIgnore=0x00000111;
       
    29 const TUint KDummyIoctlCancelled=0x00001111;
       
    30 
       
    31 //RProperty Handles for Dummy Protocol
       
    32  const TUid KDummyUid                        = {0x1020316E};
       
    33  const TInt KDummyTerminationProperty        = 1; 
       
    34 //This property needs to be set to 0 for normal operation 
       
    35  //and 1 to request termination
       
    36  
       
    37  
       
    38  //Socket server test ioclts
       
    39  const TUint KDummyIoctlPanicProtocolModule  = 0x00003001;
       
    40  const TUint KDummyIocltNonCompleting        = 0x00003002;
       
    41  const TUint KDummyIoctlPanicDealer          = 0x00003003;
       
    42  const TUint KDummyIoctBlockHardOnClose      = 0x00003004;
       
    43  const TUint KDummyIoctlSlowIoctlReturn      = 0x00003005;
       
    44  const TUint KDummyIoctlHangIoctlReturn      = 0x00003006;
       
    45  const TUint KDummyIocltJustComplete         = 0x00003007;
       
    46 const TUint KDummyIocltRemoteDisconnect     = 0x00003008;
       
    47 const TUint KDummyIoctlCompleteWithData     = 0x00003009;
       
    48 
       
    49 const TUint KIoctlDummyLevel=KSOLSocket+1;
       
    50 const TUint KDummyOptionSetConnectComplete  =   0x00001234;
       
    51  const TUint KDummyOptionSetErrorNextListen  =   0x00000001;
       
    52 const TUint KDummyOptionSetBlockConnect     =   0x00000010;
       
    53 const TUint KDummyOptionSetIocltComplete    =   0x00000020;
       
    54 const TUint KDummyOptionSetErrorNextWrite   =   0x00000030;
       
    55  const TUint KDummyOptionSetErrorNextShutdown=   0x00000040;
       
    56 const TUint KDummyOptionSetErrorNextConnect =   0x00000050;
       
    57 const TUint KDummyOptionSetFlowOffWrite     =   0x00000060;
       
    58  const TUint KDummyOptionSetTimedFlowOffWrite =  0x00000070;
       
    59 const TUint KDummyOptionSetGobbleMBufs       =  0x00000380;
       
    60 const TUint KDummyOptionSetFreeMBufs         =  0x00000390;
       
    61 const TUint KDummyOptionSetFreeSomeMBufs     =  0x000003a0;
       
    62 const TUint KDummyOptionGetMBufFreeSpace     =  0x000003b0;
       
    63 const TUint KDummyOptionSetBlockConnectData  =  0x000003c0;
       
    64 
       
    65  // set option used for testing CProtocolBase implemenations
       
    66  const TUint KDummyOptionSetProtocolBaseBind                 =   0x00000110;
       
    67  const TUint KDummyOptionSetProtocolBaseBindTo               =   0x00000120;
       
    68 const TUint KDummyOptionSetProtocolBaseError                =   0x00000130;
       
    69 const TUint KDummyOptionSetProtocolBaseGetOption            =   0x00000140;
       
    70 const TUint KDummyOptionSetProtocolBaseNewHostResolver      =   0x00000150;
       
    71 const TUint KDummyOptionSetProtocolBaseNewNetDatabase       =   0x00000160;
       
    72 const TUint KDummyOptionSetProtocolBaseNewSAP               =   0x00000170;
       
    73 const TUint KDummyOptionSetProtocolBaseNewServiceResolver   =   0x00000180;
       
    74 const TUint KDummyOptionProtocolBaseProcess                 =   0x00000190;
       
    75 const TUint KDummyOptionSetProtocolBaseSend                 =   0x000001a0;
       
    76 const TUint KDummyOptionSetProtocolBaseSetOption            =   0x000001b0;
       
    77  
       
    78  const TUint KDummyOptionLeakMemory          =   0x00000080;
       
    79  //Socket Protocols and families
       
    80 
       
    81  const TUint KPDummyNumProtocols=5;
       
    82  const TUint KDummyAddrFamily=0xFFFF;    // was 0x10000; SIP inadvertently took that
       
    83  const TUint KDummyOne=1;
       
    84  const TUint KDummyTwo=2;
       
    85  const TUint KDummyThree=3;
       
    86 const TUint KDummyFour=4;
       
    87  const TUint KDummyFive=5;
       
    88  
       
    89  const TUint KDummyMajor=0;
       
    90  const TUint KDummyMinor=1;
       
    91 const TUint KDummyBuild=0;
       
    92 
       
    93 const TInt KDummyWriteFlowOffTimeout = 1000;
       
    94 
       
    95  const TUint KDStreamServiceInfo = KSIReliable | KSIInOrder | KSIStreamBased | KSIUrgentData | KSIGracefulClose;
       
    96  const TUint kDDatagramServiceInfo = KSIConnectionLess | KSIMessageBased | KSIBroadcast| KSIGracefulClose;
       
    97  // Ioctl data
       
    98  _LIT8(KIoctlData, "Ioctl Data");
       
    99 
       
   100  // Connect complete data
       
   101  _LIT8(KConnectCompleteData, "Connect Complete Data");
       
   102  
       
   103  // Dummy protocol descriptive names
       
   104  _LIT(KDummyOneName, "Dummy Protocol 1");
       
   105  _LIT(KDummyTwoName, "Dummy Protocol 2");
       
   106  _LIT(KDummyThreeName, "Dummy Protocol 3");
       
   107  _LIT(KDummyFourName, "Dummy Protocol 4");
       
   108  _LIT(KDummyFiveName, "Dummy Protocol 5");
       
   109 
       
   110  // Dummy interface names
       
   111  _LIT(KDummySglIfName, "testsglif");
       
   112  _LIT(KDummyMulIfName, "testmulif");
       
   113 
       
   114 
       
   115 #endif