datacommsserver/esockserver/test/TE_EsockTestSteps/src/EsockTestBase.cpp
branchRCL_3
changeset 15 51722b10598b
parent 1 21d2ab05f085
child 17 9ddb1d67ebaf
equal deleted inserted replaced
14:4ccf8e394726 15:51722b10598b
  1229 		{
  1229 		{
  1230 		return aConn.Start(aPrefs);
  1230 		return aConn.Start(aPrefs);
  1231 		}
  1231 		}
  1232 	return KErrNone;
  1232 	return KErrNone;
  1233 	}
  1233 	}
       
  1234 
       
  1235 TInt CCEsockTestBase::GetParameters(TPtrC aConnectionName, ESock::CCommsDataObjectBase& aDataObject)
       
  1236     {
       
  1237     RConnection* c = iConns.Find(aConnectionName);
       
  1238     if (c==NULL)
       
  1239         return KErrNotFound;
       
  1240     return c->GetParameters(aDataObject);
       
  1241     }
       
  1242 
       
  1243 TInt CCEsockTestBase::GetIntSetting(TPtrC aConnectionName, const TDesC& aSettingName, TUint32& aValue)
       
  1244     {
       
  1245     RConnection* c = iConns.Find(aConnectionName);
       
  1246     if (c==NULL)
       
  1247         return KErrNotFound;
       
  1248     return c->GetIntSetting(aSettingName, aValue);
       
  1249     }
       
  1250 
  1234 
  1251 
  1235 TInt CCEsockTestBase::StartConnection(TRConnectionParams& aParams)
  1252 TInt CCEsockTestBase::StartConnection(TRConnectionParams& aParams)
  1236 	{
  1253 	{
  1237     RConnection* c = iConns.Find(aParams.iConnectionName);
  1254     RConnection* c = iConns.Find(aParams.iConnectionName);
  1238 	if (c==NULL)
  1255 	if (c==NULL)
  2233 
  2250 
  2234     aBufferPtr = (ec->iEventReceived.Int()==KErrNone)? &ec->iEventNotifBuf : NULL;
  2251     aBufferPtr = (ec->iEventReceived.Int()==KErrNone)? &ec->iEventNotifBuf : NULL;
  2235     return ec->iEventReceived.Int();
  2252     return ec->iEventReceived.Int();
  2236     }
  2253     }
  2237 
  2254 
       
  2255 
       
  2256 
  2238 //
  2257 //
  2239 //cleanup
  2258 //cleanup
  2240 
  2259 
  2241 void CCEsockTestBase::CleanAll()
  2260 void CCEsockTestBase::CleanAll()
  2242 	{
  2261 	{