От: | DrunkPilot | ||
Дата: | 17.02.19 12:54 | ||
Оценка: |
Вопрос как правильно в винде сделать timeout ns запроса . Велосипедить свой gethostbyname через сокеты ?An optional parameter indicating the time, in milliseconds, to wait for a response from the namespace provider before aborting the call.
This parameter is only supported when the UNICODE or _UNICODE macro has been defined in the sources before calling the GetAddrInfoEx function. Otherwise, this parameter is currently reserved and must be set to NULL since a timeout option is not supported.