I'm going to develop a UDP server socket on Series 60 (Symbian 6.1). This means the Socket should be bind to any address and a specific port.
For this I
(1) created a SocketServer,
(2) connected the Socket Server
(3) created a Socket:
myUDPServerSocket.open(socksrv, KAfInet, KSockDatagram, KProtocolInetUdp);
(4) created a TInetAddr:
Code: myLocalAddr = new TInetAddr(KInetAddrAny, 1234);
(5) bind the socket to that address:
Code: myUDPServerSocket.Bind(myLocalAddr);
This binding seams not be working.
I use the emulator and I have connection to the network (I can send packets). I even I can receive packets at this sending socket (I used ethereal to find out the port of this sending socket).
I have the same problem. When I try to bind KInetAddrAny to RSocket, it will leave with error code KErrInUse. I even try to close and open it agian, it will also get KErrInUse.
Have you resloved the problem, please let me know. If somebody else can help us, thank you very much.