zdk.net
StunConfig.h
1 //
2 // StunConfig.h
3 // ZDK
4 //
5 
6 #ifndef ZDK_NET_StunConfig_h
7 #define ZDK_NET_StunConfig_h
8 
9 #include "native_shared_ptr.h"
10 #include "PublicInterfaces.h"
11 #include "ZHandle.h"
12 
13 using namespace System::Collections::Generic;
14 
15 namespace ZDK_NET
16 {
17  ref class StunConfig;
18 
28  public ref class StunConfig : ZHandle
29  {
30  public:
31  ZDK::IStunConfig* cppRef = nullptr;
32 
33  StunConfig(ZDK::Shared::StunConfig src);
34  ~StunConfig();
36 
43  property bool STUNEnabled
44  {
45  bool get();
46  void set(bool value);
47  }
48 
55  property System::String^ STUNServer
56  {
57  System::String^ get();
58  void set(System::String^ value);
59  }
60 
67  property int STUNPort
68  {
69  int get();
70  void set(int value);
71  }
72 
82  property int STUNRefresh
83  {
84  int get();
85  void set(int value);
86  }
87 
99  property bool UseDnsSrvRequests
100  {
101  bool get();
102  void set(bool value);
103  }
104 
116  property bool AllowOnPrivateAddress
117  {
118  bool get();
119  void set(bool value);
120  }
121 
133  property bool AllowWithPrivateSipServer
134  {
135  bool get();
136  void set(bool value);
137  }
138 
148 
149  virtual long long Handle() override;
150 
151  virtual void Initialize() override;
152 
153  virtual void ReleaseReference() override;
154 
155  };
156 }
157 
158 #endif
ZDK_NET::StunConfig::IsEqual
bool IsEqual(ZDK_NET::StunConfig^ comp)
Compares the current configuration with the given one.
ZDK_NET::StunConfig
STUN specific account configuration.
Definition: StunConfig.h:29
ZDK_NET::ZHandle
Definition: ZHandle.h:18