Timeout setting of opening TCPClientCreate


#1

Hi brothers,

If I tried calling wip_TCPClientCreate( ) towards a out-of-order TCP server, there need up to few minutes before my handler getting WIP_CERR_TIMEOUT message.

Do anyone know if I can shorten the time of getting error message ?


#2

Some problem!
Please help!


#3

Hi,

what about:

  • setting up a timer when you create the channel
  • when the timer is triggered, if the connection is still not established (you can tell because you never received WIP_CEV_OPEN, or can simply check that wip_getState() doesn’t return WIP_CSTATE_READY), close it with wip_close(), and do whatever you want to do upon connection failure?