Hello to everyone.

I have a problem that I hope you can help me solve.
I have an application that acts as a server, listening for incoming TCP connections. I altered some instructions for it to use IPV6 but after the accept() instruction using setactive() i get right away a -18(KErrNotReady) error in the RunL. When i was using IPv4 all was normal. I can send UDPs using IPV6 but listening for connections over TCP seems to be a problem. The engine of my application is:

TInetAddr iAddress;
User::LeaveIfError(iSocket.Open(iSocketServ, KAfInet, KSockStream, KProtocolInetTcp));
User::LeaveIfError(iSocket2.Open(iSocketServ));
iAddress.Input(_L("2020::dead:beef"));
iAddress.SetPort(iPort);
iSocket.Bind(iAddress);
iSocket.Listen(1);
iSocket.Accept(iSocket2, iStatus);
ChangeStatus(EConnecting);
SetActive();

After this instruction the code goes to the runL() function with the -18 error. Is there anything wrong in the sockets procedure?In IPv4 there wasn`t.


Thanks for your help,

Rui