2023-12-14 21:54:22 +01:00
|
|
|
#ifndef IP_UNIX_H
|
|
|
|
#define IP_UNIX_H
|
2023-12-17 15:39:29 +01:00
|
|
|
|
2023-12-14 21:54:22 +01:00
|
|
|
/* ip_unix.h */
|
2023-12-17 15:39:29 +01:00
|
|
|
|
2023-12-14 21:54:22 +01:00
|
|
|
|
|
|
|
#include "core/io/ip.h"
|
|
|
|
|
|
|
|
#if defined(UNIX_ENABLED) || defined(WINDOWS_ENABLED)
|
|
|
|
|
|
|
|
class IP_Unix : public IP {
|
|
|
|
GDCLASS(IP_Unix, IP);
|
|
|
|
|
|
|
|
virtual void _resolve_hostname(List<IP_Address> &r_addresses, const String &p_hostname, Type p_type = TYPE_ANY) const;
|
|
|
|
|
|
|
|
static IP *_create_unix();
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void get_local_interfaces(RBMap<String, Interface_Info> *r_interfaces) const;
|
|
|
|
|
|
|
|
static void make_default();
|
|
|
|
IP_Unix();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif // IP_UNIX_H
|