Datasnap.Win.SConnect.TStreamedConnection.SupportCallbacks

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SupportCallbacks: Boolean read FSupportCallbacks write SetSupportCallbacks default True;

C++

__property bool SupportCallbacks = {read=FSupportCallbacks, write=SetSupportCallbacks, default=1};

Properties

Type Visibility Source Unit Parent
property protected
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Datasnap.Win.SConnect TStreamedConnection

Description

Determines whether the streamed connection component can handle callbacks in the application server interface.

Use SupportCallbacks to indicate whether the connection component can marshal callback functions in the application server's interface. When SupportCallbacks is True, the connection component can marshal calls from the application server to the client application over an interface supplied as a callback.

For TSocketConnection, callbacks are optional. Set SupportCallbacks to True if you are using callbacks as part of the application server's interface. When SupportCallbacks is True, the socket connection component requires WinSock2. Set SupportCallbacks to False if you are not using callback functions and want to eliminate the dependency on WinSock2.

TWebConnection cannot support callback functions. It initializes SupportCallbacks to False in the constructor and never changes this value.

See Also