ZOOM Windows SDK  5.2.42037.1112
network_connection_handler_interface.h
Go to the documentation of this file.
1 
7 #ifndef _NETWORK_CONNECTION_HANDLER_H_
8 #define _NETWORK_CONNECTION_HANDLER_H_
9 
10 BEGIN_ZOOM_SDK_NAMESPACE
11 
16 typedef struct tagProxySettings
17 {
18  const wchar_t* proxy;
21  {
22  proxy = NULL;
23  auto_detect = false;
24  }
26 
30 {
31 public:
32  virtual ~IProxySettingHandler(){};
35  virtual const wchar_t* GetProxyHost() = 0;
38  virtual unsigned int GetProxyPort() = 0;
41  virtual const wchar_t* GetProxyDescription() = 0;
42 
46  virtual void InputUsernamePassword(const wchar_t* userName, const wchar_t* psw) = 0;
47 
49  virtual void Cancel() = 0;
50 
51 };
52 
56 {
57 public:
58  virtual ~ISSLCertVerificationHandler(){};
59 
61  virtual const wchar_t* GetCertIssuedTo() = 0;
62 
64  virtual const wchar_t* GetCertIssuedBy() = 0;
65 
67  virtual const wchar_t* GetCertSerialNum() = 0;
68 
70  virtual const wchar_t* GetCertFingerprint() = 0;
71 
73  virtual void Trust() = 0;
75  virtual void Cancel() = 0;
76 
77 };
78 
82 {
83 public:
85  virtual void onProxyDetectComplete() = 0;
89  virtual void onProxySettingNotification(IProxySettingHandler* handler) = 0;
90 
95 };
96 
100 {
101 public:
107 
112 
117  virtual SDKError ConfigureProxy(ProxySettings& proxy_setting) = 0;
118 };
119 END_ZOOM_SDK_NAMESPACE
120 #endif
const wchar_t * proxy
The proxy ip address and port that user want to use, should be organized like ip:port, such as '255.255.255.255:8080'. Use ';' to separate multi proxies.
Definition: network_connection_handler_interface.h:18
virtual void Cancel()=0
Cancel the process to input the username and password of the proxy.
The proxy that the user want to use according to the net environment. Here are more detailed structur...
Definition: network_connection_handler_interface.h:16
virtual void Trust()=0
The SSL certificate is trusted.
SDKError
SDK error types. Here are more detailed structural descriptions.
Definition: zoom_sdk_def.h:29
virtual const wchar_t * GetCertIssuedBy()=0
Get the value that who issues the SSL certificate.
virtual const wchar_t * GetCertIssuedTo()=0
Get the value of whom the SSL certificate is issued to.
bool auto_detect
TRUE indicates automatic detection.
Definition: network_connection_handler_interface.h:19
virtual void onSSLCertVerifyNotification(ISSLCertVerificationHandler *handler)=0
The callback will be triggered when the SSL is verified.
Proxy setting information callback interface.
Definition: network_connection_handler_interface.h:29
virtual void onProxyDetectComplete()=0
Notification callback of completing the proxy detection.
virtual unsigned int GetProxyPort()=0
Get the proxy port. Return The value of the proxy port.
virtual const wchar_t * GetProxyDescription()=0
Get the description of the proxy. Return The description of the proxy.
Verification of the SSL certificate callback interface.
Definition: network_connection_handler_interface.h:55
virtual SDKError ConfigureProxy(ProxySettings &proxy_setting)=0
Set the proxy that the user want to use according to your net environment. proxy_setting The proxy i...
virtual SDKError UnRegisterNetworkConnectionHandler()=0
Unregister the callback handler which is used to receive the INetworkConnectionHandler.
virtual SDKError RegisterNetworkConnectionHandler(INetworkConnectionHandler *pNetworkHandler)=0
Set the callback handler to receive the INetworkConnectionHandler.
virtual const wchar_t * GetProxyHost()=0
Get the address of the proxy host. Return the address of the proxy host.
virtual void InputUsernamePassword(const wchar_t *userName, const wchar_t *psw)=0
Input the username and password when using the proxy.
The network connection helper interface.
Definition: network_connection_handler_interface.h:99
virtual void Cancel()=0
The SSL certificate is not trusted.
virtual const wchar_t * GetCertFingerprint()=0
get the SSL certificate's fingerprint
virtual const wchar_t * GetCertSerialNum()=0
Get the serial number of the SSL certificate.
virtual void onProxySettingNotification(IProxySettingHandler *handler)=0
The callback will be triggered if the proxy requests to input the username and password.
The network connection handler callback event.
Definition: network_connection_handler_interface.h:81