Как прикрутить timeout к dns запросу
От: DrunkPilot  
Дата: 17.02.19 12:54
Оценка:
Казалось бы все просто . Есть список хостов . Есть api GetAddrInfoEx , где присутствует аргумент timeout .
Однако

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.

Вопрос как правильно в винде сделать timeout ns запроса . Велосипедить свой gethostbyname через сокеты ?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.