Meeting SDK for Windows API Reference
Loading...
Searching...
No Matches
network_connection_handler_interface.h
Go to the documentation of this file.
1
5
6#ifndef _NETWORK_CONNECTION_HANDLER_H_
7#define _NETWORK_CONNECTION_HANDLER_H_
8
10
15typedef struct tagProxySettings
16{
18 const zchar_t* proxy;
22 {
23 proxy = nullptr;
24 auto_detect = false;
25 }
27
33{
34public:
36
41 virtual const zchar_t* GetProxyHost() = 0;
42
47 virtual unsigned int GetProxyPort() = 0;
48
53 virtual const zchar_t* GetProxyDescription() = 0;
54
60 virtual void InputUsernamePassword(const zchar_t* userName, const zchar_t* psw) = 0;
61
65 virtual void Cancel() = 0;
66
67};
68
74{
75public:
77
81 virtual const zchar_t* GetCertIssuedTo() = 0;
82
86 virtual const zchar_t* GetCertIssuedBy() = 0;
87
91 virtual const zchar_t* GetCertSerialNum() = 0;
92
96 virtual const zchar_t* GetCertFingerprint() = 0;
97
101 virtual void Trust() = 0;
102
106 virtual void Cancel() = 0;
107
108};
109
115{
116public:
120 virtual void onProxyDetectComplete() = 0;
121
128
135};
136
165#endif
The network connection handler callback event.
virtual void onProxySettingNotification(IProxySettingHandler *handler)=0
The callback will be triggered if the proxy requests to input the username and password.
virtual void onProxyDetectComplete()=0
Notification callback of completing the proxy detection.
virtual void onSSLCertVerifyNotification(ISSLCertVerificationHandler *handler)=0
The callback will be triggered when the SSL is verified.
The network connection helper interface.
virtual SDKError ConfigureProxy(ProxySettings &proxy_setting)=0
Sets the proxy that the user want to use according to your net environment.
virtual SDKError RegisterNetworkConnectionHandler(INetworkConnectionHandler *pNetworkHandler)=0
Sets the callback handler to receive the INetworkConnectionHandler.
virtual SDKError UnRegisterNetworkConnectionHandler()=0
Unregister the callback handler which is used to receive the INetworkConnectionHandler.
Proxy setting information callback interface.
virtual const zchar_t * GetProxyDescription()=0
Gets the description of the proxy.
virtual void InputUsernamePassword(const zchar_t *userName, const zchar_t *psw)=0
Input the username and password when using the proxy.
virtual unsigned int GetProxyPort()=0
Gets the proxy port.
virtual void Cancel()=0
Cancel the process to input the username and password of the proxy.
virtual const zchar_t * GetProxyHost()=0
Gets the address of the proxy host.
Verification of the SSL certificate callback interface.
virtual void Trust()=0
The SSL certificate is trusted.
virtual const zchar_t * GetCertSerialNum()=0
Gets the serial number of the SSL certificate.
virtual void Cancel()=0
The SSL certificate is not trusted.
virtual const zchar_t * GetCertFingerprint()=0
Gets the SSL certificate's fingerprint.
virtual const zchar_t * GetCertIssuedTo()=0
Gets the value of whom the SSL certificate is issued to.
virtual const zchar_t * GetCertIssuedBy()=0
Gets the value that who issues the SSL certificate.
BEGIN_ZOOM_SDK_NAMESPACE struct tagProxySettings ProxySettings
The proxy that the user want to use according to the net environment. Here are more detailed structur...
#define END_ZOOM_SDK_NAMESPACE
#define BEGIN_ZOOM_SDK_NAMESPACE
char zchar_t
SDKError
Enumeration of common errors of SDK.