I try to create client-server software, where N95 (client) connects to the laptop (server) via WLAN (ad-hoc). Laptop assigns IP address dynamically.
The problem is that creating the connection takes quite a long time i.e. until laptop has valid IP address (about 30 seconds). The RSocket::Connect() (active method) call fails because of this? What I have tried is based very closely of the examples of the previous and current examples of Nokia.
I have tried to find a solution how to monitor the connection status and notice when all the negotiation and dynamic IP address assignments are done but I have not found working solution. Only way I am able to get this work is to first wait until the laptop has everything ready and then call manually RSocket::Connect() method, but this is not very good approach at the end.
So, any help? Is it possible to monitor to connection as far I would like to or how to solve long delay before I can call RSocket::Connect() method? Is only way to use static IP address on the laptop (again, not good thing in my case).
[EDIT:] I forgot to wrote that RSocket::Connect() status returns -191. Also the code works fine in emulator (i.e. all the connections are made as should).