HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_NetUtil.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_NetUtil.h (UT Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __UT_NETUTIL_H_INCLUDED__
12 #define __UT_NETUTIL_H_INCLUDED__
13 
14 #include "UT_API.h"
15 
16 #ifdef _WIN32
17  #include <ws2tcpip.h>
18 #else
19  #include <netinet/in.h>
20 #endif
21 
22 /// @file
23 /// Common network utilities
24 
25 class UT_String;
26 
27 /// Given host, resolves it to the canonical name if possible.
28 /// If false is returned, then host is untouched.
30 
31 #endif // __UT_NETUTIL_H_INCLUDED__
#define UT_API
Definition: UT_API.h:12
UT_API bool UTresolveCanonicalHostname(UT_String &host)