I am trying to implement TCP sockets in my application, so that our server can push messages to my mobile phone using this sockets. When I execute connect statement to connect to a socket at application server side, I'm able to receive responses. (and I can able to work with the data dynamically.)
But when I tried to select "Options" menu (Using left soft key), It is not opening (sometimes it is taking 2 min. to open). What might be the reason for this one. This is the code I used in my application.
void CTcpSocket::RunL()
{
Receive();
iTimer.After(iStatus,1000000);
SetActive();
}
void CTcpSocket::Receive()
{
iSocket.RecvOneOrMore(iBuffer,0,iSStatus,iLen);
User::WaitForRequest(iSStatus);
if(iSStatus == KErrNone)
{
iRecvBuffer.Copy(iBuffer);
iSynfoTab->dataReceive(iRecvBuffer);
iRecvBuffer.Zero();
}
}
Please help me out.



