This section describes the scenario of getting access to the cloud when one the scanning or monitoring functions is requesting the URL or file reputation. The process of setting connection to the cloud is the following:
KAV SDK checks whether the proxy server's connection settings were already received from your application project.
KAV SDK generates the EVENT_PROXY_QUERY event and requests the connection settings from your application project. Depending on the value, returned by callback function of your application, the actions are the following:
CLBK_USE_PROXY and passes the connection settings, KAV SDK starts to establish connection with the proxy server using the received settings. Your application project should pass the connection settings using the kaveRegisterProxySettings function.If the connection succeed, KAV SDK saves the CLBK_USE_PROXY value and the received connection settings for using in the following connection sessions. The EVENT_PROXY_SETTINGS_SUCCEEDED event is generated and the saved connection settings are passed to your application project.
CLBK_OK or does not pass the connection settings, KAV SDK attempts to establish connection to the cloud without usage of proxy server.If the connection is established, the answer of your application is saved for using in the following connection sessions.
If the connection attempt fails, the EVENT_PROXY_QUERY event is generated and the connection settings are requested from your application.
EVENT_PROXY_SETTINGS_FAILED event and requests the connection settings from your application project again. If usage of the proxy server is required, your application project should pass the connection settings, using the kaveRegisterProxySettings function, and the callback function should return the CLBK_USE_PROXY value. On receiving the settings, KAV SDK attempts to establish the connection. The last received settings are saved instead of the previous ones.EVENT_PROXY_SETTINGS_SUCCEEDED event and passes the saved connection settings to your application project.The process of setting connection to the cloud is shown on the scheme below.

Establishing connection to the cloud
KAV SDK requests connection settings for every KSN infrastructure's host. If the connection with some host was established successfully, on the next connection with another host the settings will be requested again.
Page top