I am developing an application using S60 3rd Ed FP1. Also this problem is on emulator.
Im my application I am creating a socket connection and performing read and write operations on that. For socket connection, read and write operation I have three Active object. All is working fine when I use a proper IP address. Also my server application is running on a machine in LAN.
The problem is that when I use a IP like 192.168.0.1, which in not valid for my LAN, my application hangs for a moment on Connect() method of RSocket class. Or in other word the Connect method take long time to return back control to next stametment. But at same time if I use IP, which is valid for my LAN) like 192.168.166.34 the Connect() return immediately. So my queries are
1. Is there a way to get the UI events performed by user and application does not hang while Connect() is executing.
2. Why Connect() takes long time when I give IP, which is not a live IP and also not valid for my LAN.
I also tried with a live IP and found that Connect() returns properly without delay.