hi,
I running my tcp/ip server in series 60 mobile which have to connect to browser (in browser i did proxy settings 127.0.0.1 port 9393) but my server application it gets hanged & i am unable to open browser. I found that my server is waiting near Accept( ) and not allowing other applications to run ,
So can any one say me how to connect my server to browser
This is my server code
lErr=iServerSession.Connect();
User::LeaveIfError(lErr);
iLSockAddr.SetAddress(KInetAddrAny);
iLSockAddr.SetPort(9393);
lErr = iListenSocket.Open(iServerSession,
KAfInet,
KSockStream,
KProtocolInetTcp);
User::LeaveIfError(lErr);
lErr = iSocket.Open(iServerSession);
User::LeaveIfError(lErr);
lErr = iListenSocket.Bind(iLSockAddr);
User::LeaveIfError(lErr);
lErr = iListenSocket.Listen(1);
User::LeaveIfError(lErr);
// lErr = iSocket.Open(iServerSession);
// User::LeaveIfError(lErr);
// sleep(60);
iListenSocket.Accept(iSocket,iStatus);
User::WaitForRequest(iStatus);
Thanking you
sandeep



