10 years, 5 months ago.

Timeout on socket connection

Hi

When I try to connect to a socket , there is quiet a long time I have to wait in case of a problem . Can somebody tell me where I can find this timeout value so I could lower it

Thanks in advance

Is this what you are looking for :\

void Socket::set_blocking(bool blocking, unsigned int timeout) {
    _blocking = blocking;
    _timeout = timeout;
}
posted by Martin Kojtal 11 Jun 2014

Hi Martin, I have tried this, but the result is still the same, I guess the blocking-setting only works when sending or receiving data , not when trying to connect .

posted by Patrick VDK 11 Jun 2014
Be the first to answer this question.