/* (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.                */
#ifndef ENGINE_SHARED_HOST_LOOKUP_H
#define ENGINE_SHARED_HOST_LOOKUP_H

#include <base/types.h>

#include <engine/shared/jobs.h>

class CHostLookup : public IJob
{
private:
	int m_Result;
	char m_aHostname[128];
	int m_Nettype;
	NETADDR m_Addr;

	void Run() override;

public:
	CHostLookup(const char *pHostname, int Nettype);

	int Result() const { return m_Result; }
	const char *Hostname() const { return m_aHostname; }
	int Nettype() const { return m_Nettype; }
	NETADDR Addr() const { return m_Addr; }
};

#endif
