In my client program (c++) I am trying to connect server machine through socket using connect() API. I want to make a scenario that my client application is in blocked wait (ie return ETIMEDOUT errno after a long time). But connect() API is returning with success or failure only. It is not waiting. What should I do to make connect() API in blocked wait.In my client program (c++) I am trying to conne