server code in symbian ???
| Mon, 2006-07-03 08:12 | |
|
Hi...
i'm writing a server in symbian in which it listens for the connection from browser with some address & port(9393) ..... i have coded these lines....can u plz correct me if i went wrong in these........i dont know how to code SetOpt() functions and Ioctl() ..can anyone who knows more abt these reply soon...... RSocketServ iSocketServer; RSocket iSocket,iClient; TSockAddr iListenAddr; iSocketServer.Connect(); iSocket.Open(iSocketServer,KAfInet,KSockStream ,KProtocolInetTcp); TInetAddr addr(KInetAddrAny); iListenAddr.SetPort(9393); iSocket.Bind(addr); iSocket.Listen(5); iClient.Open(iSocketServer); iSocket.Accept(iClient,iStatus); User::WaitForRequest(iStatus); SetActive(); _________________ Regards, Sundar.G |
|





