/
dieoska
/
ddnet
Обзор
Документация
Войти
/
dieoska
/
ddnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/engine/shared/host_lookup.cpp
20 строк
515 B
Robert Müller
Allow background jobs to be aborted, refactoring
25 фев 2024, 19:03
25 фев 2024, 19:03
6cdfa35
Код
Авторство
О чём код?
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include "host_lookup.h" #include <base/system.h> CHostLookup::CHostLookup() = default; CHostLookup::CHostLookup(const char *pHostname, int Nettype) { str_copy(m_aHostname, pHostname); m_Nettype = Nettype; Abortable(true); } void CHostLookup::Run() { m_Result = net_host_lookup(m_aHostname, &m_Addr, m_Nettype); }