HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_Utils.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: NET_Utils.h
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __NET_UTILS_H__
13 #define __NET_UTILS_H__
14 
15 #include "NET_API.h"
16 
17 #include <UT/UT_JSONWriter.h>
18 #include <UT/UT_StringHolder.h>
19 #include <UT/UT_UniquePtr.h>
20 
21 class UT_NetSocket;
22 class UT_WorkBuffer;
23 class UT_IpAddressV4;
24 
25 /// Determine the default CA Path used by Houdini
27 
28 /// Determine the default CA Info path used by Houdini
30 
32  UT_NetSocket *sock,
33  UT_IpAddressV4& local_ip,
34  UT_IpAddressV4& remote_ip);
35 
37  const UT_IpAddressV4& server_ip,
38  const UT_IpAddressV4& client_ip,
39  const char *ipmask);
40 
42 
44 
46 
47 /// Remove any dot segments present in the provided url path.
49 
50 /// HTML escape text to ensure security saftey.
52 #endif // __NET_UTILS_H__
53 
This represents a Ipv4 address.
Definition: UT_IpAddress.h:34
NET_API UT_StringHolder NETdetermineCAInfo()
Determine the default CA Info path used by Houdini.
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
NET_API UT_UniquePtr< UT_JSONWriter > NETcreateJSONWriter(UT_WorkBuffer &content)
NET_API UT_StringHolder NETremoveDotSegmentsInUrlPath(const UT_StringRef &p)
Remove any dot segments present in the provided url path.
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
Definition: UT_UniquePtr.h:39
#define NET_API
Definition: NET_API.h:9
NET_API UT_StringHolder NEThtmlEscape(const UT_StringHolder &name)
HTML escape text to ensure security saftey.
GLuint const GLchar * name
Definition: glcorearb.h:786
NET_API UT_StringHolder NETdetermineCAPath()
Determine the default CA Path used by Houdini.
NET_API bool NETmatchIPMask(const UT_IpAddressV4 &server_ip, const UT_IpAddressV4 &client_ip, const char *ipmask)
NET_API void NETgetLocalAndRemoteIPs(UT_NetSocket *sock, UT_IpAddressV4 &local_ip, UT_IpAddressV4 &remote_ip)
NET_API UT_StringHolder NEThttpDate()
NET_API UT_StringHolder NETgenerateRandomString(int length)