Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTsnipTLSServer.ClassServer

property ClassServer: TsnifClassServer read fClassServer;
THE SNIF CLASS SERVER THAT DISPATCHES REMOTED CALLS - owned by this component, created with it, freed with it, and never nil.

READ-ONLY BECAUSE THERE IS NOTHING TO ASSIGN. TsnifClassServer is not a registered component: it cannot be dropped on a form, so a settable property would advertise a design-time association that the Object Inspector cannot make. Owning it removes the question - and the two lines of construction every host would otherwise repeat.

WHAT THIS INSTANCE CARRIES IS PER-SERVER STATE - the user list, the roles, the authentication events. The REMOTED CLASSES are not per-server: they go into a process-wide registry through a CLASS procedure, so that call names the type, not this instance.

TsnifClassServer.RegisterServerClass(TMyRemotedThing); // once snip := TsnipTLSServer.Create(Self);
snip.ClassServer.OnRequestOTP := MyOtpHandler; // per server

Its lifetime is this component's. Do not free it.