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  * POPRIETARY 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 
24 /// Determine the default CA Path used by Houdini
26 
27 /// Determine the default CA Info path used by Houdini
29 
30 NET_API void NETgetLocalAndRemoteIPs(
31  UT_NetSocket *sock,
32  unsigned short local_ip[4],
33  unsigned short remote_ip[4]);
34 
35 NET_API bool NETmatchIPMask(
36  const unsigned short server_ip[4],
37  const unsigned short client_ip[4],
38  const char *ipmask);
39 
41 
42 #endif // __NET_UTILS_H__
43 
NET_API bool NETmatchIPMask(const unsigned short server_ip[4], const unsigned short client_ip[4], const char *ipmask)
NET_API UT_StringHolder NETdetermineCAInfo()
Determine the default CA Info path used by Houdini.
NET_API UT_UniquePtr< UT_JSONWriter > NETcreateJSONWriter(UT_WorkBuffer &content)
NET_API void NETgetLocalAndRemoteIPs(UT_NetSocket *sock, unsigned short local_ip[4], unsigned short remote_ip[4])
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
Definition: UT_UniquePtr.h:33
NET_API UT_StringHolder NETdetermineCAPath()
Determine the default CA Path used by Houdini.