11 #ifndef __UT_NETUTIL_H_INCLUDED__
12 #define __UT_NETUTIL_H_INCLUDED__
19 #include <netinet/in.h>
25 template <
typename T>
class UT_Array;
73 #endif // __UT_NETUTIL_H_INCLUDED__
UT_API UT_StringHolder UTipAddressToHostname(const UT_StringRef &ip_address, UT_StringHolder &error)
This represents a Ipv4 address.
UT_API bool UTatHostnameDelimeter(const char *p)
Check if string is at a delimeter (at end of string or at '.')
UT_API bool UTisHostnameAllNonAlpha(const char *str)
Check if rest of string is non alpha character from a hostname.
This represents either an Ipv4 address or an Ipv6 address.
UT_API bool UTdoPortsMatch(const UT_String &host1, const UT_String &host2)
UT_API bool UThostnameToIpAddress(const UT_StringRef &host, UT_Array< UT_IpAddress > &address)
Convert a hostname to a list of resolved ip addresses.
UT_API void UTstripDomainName(UT_String &host)
UT_API bool UTresolveCanonicalHostname(UT_String &host, UT_StringHolder &error)
UT_API bool UTgetLocalInterfaces(UT_Array< UT_IpAddress > &local_addrs)
Get list of IP addresses for local interfaces on this machine.
UT_API bool UTgetHostnameByAlias(UT_StringHolder &host, const char *alias, UT_StringHolder &error)
Convert either an IP address or host alias to its given name.