i have done what mathew joy suggested......here is the sequence of functions called by ie via lsp

1) wspstartup
2) wspbind
3) wspgetsockname
4) wspconnect
5) wspselect

after this if the pc is not connected to internet then it will always call wspselect and otherwise wspsocket and so on

so i conclude that connect with timeout should be the right approach.........any comments