datacommsserver/esockserver/test/TE_EsockTestSteps/src/EsockTestBase.cpp
changeset 1 21d2ab05f085
parent 0 dfb7c4ff071f
child 24 51722b10598b
--- a/datacommsserver/esockserver/test/TE_EsockTestSteps/src/EsockTestBase.cpp	Thu Dec 17 09:22:25 2009 +0200
+++ b/datacommsserver/esockserver/test/TE_EsockTestSteps/src/EsockTestBase.cpp	Thu Jan 07 13:34:53 2010 +0200
@@ -195,6 +195,16 @@
 	iValueExpected = EFalse;
 	}
 
+void TRSocketSetOptParams::Reset()
+    {
+    iSocketName.Set(KNullDesC);
+    iOptionName = 0;
+    iOptionLevel = 0;
+    iOptionToSetText.Set(KNullDesC);
+    iTextSet = EFalse;
+    iValueSet = EFalse;
+    }
+
 void TRSocketIoctlParams::Reset()
 	{
     iSocketName.Set(KNullDesC);
@@ -1061,6 +1071,24 @@
 	return s->GetOpt(aParams.iOptionName, aParams.iOptionLevel, aGetOptOutput);
 	}
 
+TInt CCEsockTestBase::SetOptSocket(const TRSocketSetOptParams& aParams, TDes8& aSetOptInput)
+    {
+    RSocket* s = iSocks.Find(aParams.iSocketName);
+    if (s == NULL)
+        return KErrNotFound;
+
+    return s->SetOpt(aParams.iOptionName, aParams.iOptionLevel, aSetOptInput);
+    }
+
+TInt CCEsockTestBase::SetOptSocket(const TRSocketSetOptParams& aParams, TInt& aSetOptInput)
+    {
+    RSocket* s = iSocks.Find(aParams.iSocketName);
+    if (s == NULL)
+        return KErrNotFound;
+
+    return s->SetOpt(aParams.iOptionName, aParams.iOptionLevel, aSetOptInput);
+    }
+
 TInt CCEsockTestBase::ProtocolDescription(
 	const TSocketProtocolDescriptionParams& aParams,
 	TProtocolDesc& aProtocolDescriptionOutput)