How to listen and accept socket? I tried this, but a eSock panic 7 is raised in the real device...
tnx,Code:User::LeaveIfError(iSocketServ.Connect()); User::LeaveIfError(iSocket.Open(iSocketServ, KAfInet, KSockStream, KProtocolInetTcp)); // Set up address information const TUint32 KInetAddr = INET_ADDR(127,0,0,1); iAddress.SetAddress(KInetAddr); iAddress.SetPort(4444); iSocket.Bind(iAddress); iSocket.Listen(5); RSocket aSocket; User::LeaveIfError(aSocket.Open(iSocketServ)); iSocket.Accept(aSocket, iStatus); iWriteBuffer= _L8("hello"); aSocket.Write(iWriteBuffer,iStatus); aSocket.Close(); iSocket.Close(); iSocketServ.Close();
Gino

;

