Answer the question
In order to leave comments, you need to log in
How to implement asynchronous reading of a file socket?
I am writing an HTTP client. The server may not respond immediately, but after N seconds (impossible to calculate). You need to perform 2 operations (one creates sockets and the other reads). If I managed to create an opening, sending does not take much time, then reading a socket from a server that did not answer causes the process to hang until the answer. How to find out if the server responded, or how to make sure that the process does not hang?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question