Datasnap.Win.SConnect.TSocketConnection.SupportCallbacks

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Unit: Datasnap.Win.SConnect
Parent: TSocketConnection

Delphi

property SupportCallbacks;

C++

__property SupportCallbacks = {default=1};

Description

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

Datasnap.Win.SConnect.TSocketConnection.SupportCallbacks inherits from Datasnap.Win.SConnect.TStreamedConnection.SupportCallbacks. All content below this line refers to Datasnap.Win.SConnect.TStreamedConnection.SupportCallbacks.

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