Datasnap.DSServer.TDSCallbackTunnel.ListeningOn

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.DSServer.pas
Datasnap.DSServer.hpp
Unit: Datasnap.DSServer
Parent: TDSCallbackTunnel

Delphi

function ListeningOn(const ChannelName: string): Boolean;

C++

bool __fastcall ListeningOn(const System::UnicodeString ChannelName);

Description

Returns whether the tunnel or any of its callbacks are listening on the specified channel.

The ListeningOn method returns whether the tunnel or any of its callbacks are listening on the specified channel.

The tunnel is listening on a channel (and therefore all callbacks are) if the ServerChannelName provided in the constructor is the same as the ChannelName being passed as a parameter to ListeningOn. Specific callbacks are listening on a channel if the ChannelName is in the list of channels they care about.

See Also