Closing Channels and De-initialization

Channels should be closed when they are no longer required.


This method is shown in the line of code below:

…
m_pAFEngine->Close(iChannel);
…

Closing a channel releases any resources that were allocated internally on the AnyFirewall™ Server. Then the server store which keeps server settings for the corresponding server store id should be closed. All the sessions and channels using that store will implicitly be closed. This includes any independent channel that is not associated with a session.

…
m_pAFEngine->CloseServerStore(serverStoreID);
…

The following call releases all the resources allocated by the AnyFirewall™ Engine after the application is closed:

…
m_pAFEngine->Release();
…