MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Specifies whether direct connection (as well as direct messaging) is allowed or not.
property Active: Boolean;
Set Active to true to allow direct connecting. Set Active to false to forbid direct messaging. This will prevent establishing of any following direct connection by requests of remote clients.
An application can check Active to determine whether direct connection opening is allowed or not. If Active is True, direct connecting is allowed; otherwise direct connection is forbidden.
You must set Active to true to start working in peer-to-peer mode.
In client-server mode, if direct connection and messaging is allowed by AllowDirectly property, Active will be implicitly set to True when you call Connect or set Connected to true to establish a connection with a server. To prevent direct connection (that is, to force client messaging through the server only), set AllowDirectly to False before calling Connect or set Active to False every time after Connect finished.