Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomSMTPServer.AppProtocol

function AppProtocol: iAppProtocol;
Register this with TsmAsyncTLSServer.Protocols.AddProtocol when the plugin is wired up from code rather than by assigning Server. The same instance is returned every time. THE COMPONENT CLEANS UP ONLY THE Server PROPERTY'S REGISTRATION - it has one slot and cannot know about registries it was never told about, so an application that registers this adapter with a SECOND server owns that registration. Forgetting is not fatal: Destroy detaches the adapter, so a leftover entry declines connections rather than calling into freed memory.