--- 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)