I am developing a server app listening to a socket for an app running on the same phone. It works very well on S60 3rd FP1. On FP2 RSock.Bind() sometimes returns an error code -14 = KErrInUse. Here the code I use for the server:
If I start the server-program Bind() returns the error -14. If I start the client first and try to connect to the socket (which does not work since the server is not started) and start the server after that, the bind works.
TInetAddr addr(KInetAddrLoop, 1151);
User::LeaveIfError(listener.Open(socketServ, KAfInet, KSockStream,
TInt error = listener.Bind(addr);
I tried several ports.
Anybody some ideas.