Hi all,
When I use RConnection::Start it returns with an error code -2008.
What does this error code mean and what should i do to fix it?
I use the following code:
(conn is an RConnection..)
TRequestStatus status;
TInetAddr destAddr;
destAddr.Input(aIP);
destAddr.SetPort(aPort);
// Connect to the socket server
TInt res = iSocketServer.Connect();
if (res != KErrNone)
return res;
// Open an RConnection object.
res = conn.Open(iSocketServer);
if (res != KErrNone)
return res;
// Create overrides
TCommDbConnPref prefs;
prefs. SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
prefs.SetDirection(ECommDbConnectionDirectionOutgoing);
prefs.SetIapId(4);
// Start an Outgoing Connection with overrides
// This is where the conn.Start returns with an error code -2008
res = conn.Start(prefs);
if (res != KErrNone)
return res;
// Open a Socket associated with the connection
res = iSocket.Open(iSocketServer, KAfInet, KSockStream, KProtocolInetTcp, conn);
if (res != KErrNone)
return res;
// Request the Socket to connect to the destination
iSocket.Connect(destAddr, status);
return KErrNone;
Thanks...



