my code is not being able to bind socket, neither my code is leaving anywhere.
i am giving my piece of code, if anybody can suggest that what could be possible reasons to this problem....
i want to make clear that i am running this code on emultor n i have issued Open(socketserversession,KAfInet,KSockDatagram,KUnspecified); prior to CSocket::Bind() without any RConnection instance.
N also iSocket is member variable of CSocket class.
TInt CSocket::Bind(TUint aLocalPort)
const TUint32 KInetAddr = INET_ADDR(127,0,0,1);
//At this point i am checking whether socket is binded to correct address or not.
//control of the program is getting inside this if statement.
iStateOfSocket=ESocketBinded;//Socket state changed.