datacommsserver/esockserver/csock/SOCKMES.H
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 1997-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 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #if !defined(__SOCKMES_H__)
       
    22 #define __SOCKMES_H__
       
    23 
       
    24 #include <e32def.h>
       
    25 
       
    26 /**
       
    27 Socket server messages
       
    28 @internalComponent
       
    29 */
       
    30 enum TSockMess
       
    31 	{
       
    32 	EIPCUninitialised = -1,
       
    33     //When editing this list make sure you add enums to their policy range so that
       
    34 	//you don't need to extend the policy file (ss_secpol.cpp) unless a new capability
       
    35 	//is really required. And be sure to add them to the logging file (ss_log.cpp)
       
    36 
       
    37 
       
    38 	// policyNetworkControl
       
    39 	ESSInstallExtension = 0,
       
    40 
       
    41 
       
    42 	// policyCustom
       
    43 	ECNControl = 16,
       
    44 
       
    45 
       
    46 	// policyDeferred
       
    47 	ESoCreate = 32,
       
    48 	ESoSend = 33,
       
    49 	ESoSendNoLength = 34,
       
    50 	ESoRecv = 35,
       
    51 	ESoRecvNoLength = 36,
       
    52 	ESoRecvOneOrMore = 37,
       
    53 	ESoRecvOneOrMoreNoLength = 38,
       
    54 	ESoRead = 39,
       
    55 	ESoWrite = 40,
       
    56 	ESoSendTo = 41,
       
    57 	ESoSendToNoLength = 42,
       
    58 	ESoRecvFrom = 43,
       
    59 	ESoRecvFromNoLength = 44,
       
    60 	ESoConnect = 45,
       
    61 	ESoBind = 46,
       
    62 	ESoAccept = 47,
       
    63 	ESoListen = 48,
       
    64 	ESoSetOpt = 49,
       
    65 	ESoGetOpt = 50,
       
    66 	ESoIoctl = 51,
       
    67 	ESoGetDiscData = 52,
       
    68 	ESoShutdown = 53,
       
    69 	ESoTransfer = 54,
       
    70 	EHRCreate = 55,
       
    71 	EHRGetByName = 56,
       
    72 	EHRNext = 57,
       
    73 	EHRGetByAddress = 58,
       
    74 	EHRGetHostName = 59,
       
    75 	EHRSetHostName = 60,
       
    76 	ESRCreate = 61,
       
    77 	ESRGetByName = 62,
       
    78 	ESRGetByNumber = 63,
       
    79 	ESRRegisterService = 64,
       
    80 	ESRRemoveService = 65,
       
    81 	ENDCreate = 66,
       
    82 	ENDQuery = 67,
       
    83 	ENDAdd = 68,
       
    84 	ENDRemove = 69,
       
    85 	ESoCreateWithConnection = 70,
       
    86 	EHRCreateWithConnection = 71,
       
    87 	ECNCreate = 72,
       
    88 	ECNCreateWithName = 73,
       
    89 	ECNStart = 74,
       
    90 	ECNSetStartPrefs = 75,
       
    91 	ECNStop = 76,
       
    92 	ECNGetIntSetting = 77,
       
    93 	ECNGetBoolSetting = 78,
       
    94 	ECNGetDes8Setting = 79,
       
    95 	ECNGetDes16Setting = 80,
       
    96 	ECNGetLongDesSetting = 81,
       
    97 	ECNAttach = 82,
       
    98 	ESCPSStop = 83,
       
    99     EHrQuery = 84,
       
   100     EHrQueryNext = 85,
       
   101     ECNIoctl = 86,
       
   102 	ECommsApiExtBindIface = 87,
       
   103 	ECommsApiExtIfaceSendReceive = 88,
       
   104 	ECommsApiExtIfaceSend = 89,
       
   105 	ECommsApiExtIfaceClose = 90,
       
   106 	ECNWaitForIncoming = 91,
       
   107 	ECNCancelWaitForIncoming = 92,
       
   108 	ESCStart = 93,
       
   109 	ESCStop = 94,
       
   110 	ESCAccept = 95,
       
   111 	ESCEventAllNotifications = 96,
       
   112 	ESCEventNotificationSetup = 97,
       
   113 	ESCProgressNotification = 98,
       
   114 	ESCCancelProgressNotification = 99,
       
   115 	ESCProgress = 100,
       
   116 	ESCIsSubConnectionActiveRequest = 101,
       
   117 	ESCIsSubConnectionActiveCancel = 102,
       
   118 	ECNGetOrSetParameters = 103,
       
   119 	EHRSetOpt = 104,
       
   120 
       
   121 	// policyPass
       
   122 	ESSNumProtocols = 128,
       
   123 	ESSProtocolInfo = 129,
       
   124 	ESSProtocolInfoByName = 130,
       
   125 	ESSProtocolStart = 131,
       
   126 	ESSProtocolStop = 132,
       
   127 	ESoCreateNull = 133,
       
   128 	ESoGetLocalName = 134,
       
   129 	ESoGetRemoteName = 135,
       
   130 	ESoClose = 136,
       
   131 	ESoCancelIoctl = 137,
       
   132 	ESoCancelRecv = 138,
       
   133 	ESoCancelSend = 139,
       
   134 	ESoCancelConnect = 140,
       
   135 	ESoCancelAccept = 141,
       
   136 	ESoCancelAll = 142,
       
   137 	ESoSocketInfo = 143,
       
   138 	ESoReference = 144,
       
   139 	EHRCancel = 145,
       
   140 	EHRClose = 146,
       
   141 	ESRCancel = 147,
       
   142 	ESRClose = 148,
       
   143 	ENDCancel = 149,
       
   144 	ENDClose = 150,
       
   145 	ECNClose = 151,
       
   146 	ECNReference = 152,
       
   147 	ECNProgress = 153,
       
   148 	ECNProgressNotification = 154,
       
   149 	ECNCancelProgressNotification = 155,
       
   150 	ECNLastProgressError = 156,
       
   151 	ECNServiceChangeNotification = 157,
       
   152 	ECNCancelServiceChangeNotification = 158,
       
   153 	ECNEnumerateConnections = 159,
       
   154 	ECNGetConnectionInfo = 160,
       
   155 	ECNAllInterfaceNotification = 161,
       
   156 	ECNCancelAllInterfaceNotification = 162,
       
   157 	ESCPSProgress = 163,
       
   158 	ESCPSProgressNotification = 164,
       
   159 	ESCPSCancelProgressNotification = 165,
       
   160 	ECNEnumerateSubConnections = 166,
       
   161 	ESCPSGetSubConnectionInfo = 167,
       
   162 	ECNAllSubConnectionNotification = 168,
       
   163 	ECNCancelAllSubConnectionNotification = 169,
       
   164 	ESCPSDataTransferred = 170,
       
   165 	ESCPSDataTransferredCancel = 171,
       
   166 	ESCPSDataSentNotificationRequest = 172,
       
   167 	ESCPSDataSentNotificationCancel = 173,
       
   168 	ESCPSDataReceivedNotificationRequest = 174,
       
   169 	ESCPSDataReceivedNotificationCancel = 175,
       
   170 	ESCPSIsSubConnectionActiveRequest = 176,
       
   171 	ESCPSIsSubConnectionActiveCancel = 177,
       
   172 	ESCCreate = 178,
       
   173 	ESCClose = 179,
       
   174 	ESCAddSocket = 180,
       
   175 	ESCRemoveSocket = 181,
       
   176 	ESCSetParameters = 182,
       
   177 	ESCGetParameters = 183,
       
   178 	ESCGetParametersLength = 184,
       
   179 	ESCEventNotification = 185,
       
   180 	ESCEventNotificationCancel = 186,
       
   181 	ESCControl = 187,
       
   182 	ESoCreateWithSubConnection = 188,
       
   183 	ECNCancelIoctl = 189,
       
   184 	ESSRequestOptimalDealer = 190,
       
   185 	ECNGetParametersResponseLength = 191,
       
   186 	ECNGetParametersResponse = 192,
       
   187 
       
   188 
       
   189 	// policyVIDandNetworkControl
       
   190 	ESSDbgMarkHeap = 208,
       
   191 	ESSDbgCheckHeap = 209,
       
   192 	ESSDbgMarkEnd = 210,
       
   193 	ESSDbgFailNext = 211,
       
   194 	ESSDbgFailNextMbuf = 212,
       
   195 	ESSDbgSetMbufPoolLimit = 213,
       
   196 	ESSDbgCheckMbuf = 214,
       
   197 	ESSDbgMbufFreeSpace = 215,
       
   198 	ESSDbgMbufTotalSpace = 216,
       
   199  	ESSDbgCheckFailNext = 217,
       
   200 	ESSDbgControl = 218,
       
   201     ESSExclusiveMode = 219,
       
   202 	ESSClearExclusiveMode = 220,
       
   203 
       
   204 
       
   205     //When editing this list, please do not forget to update
       
   206     //the associated policy file  (ss_secpol.cpp)
       
   207     // .. and the logging file (ss_log.cpp)
       
   208 
       
   209 	// Leave this at the end
       
   210 	ESSInvalidFunction
       
   211     };
       
   212 
       
   213 class TSockOpt
       
   214 /**
       
   215 @internalComponent
       
   216 */
       
   217 	{
       
   218 public:
       
   219 	TUint optionName;
       
   220 	const TAny* optionVal;
       
   221 	TInt optionLen;
       
   222 	};
       
   223 
       
   224 /** Maximum length of a SocketServer name (the server name of a dealer).
       
   225 @internalComponent
       
   226 */
       
   227 const TInt KCFMaxSocketServerName = 0x20;
       
   228 
       
   229 /** Name of a SocketServer (the server name of a dealer).
       
   230 @internalComponent
       
   231 */
       
   232 typedef TBuf<KCFMaxSocketServerName> TServerName;
       
   233 
       
   234 #endif