TROBaseSuperTCPChannel Class

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update
Interfaces — Classes — Aliases — Implements
Contents |
Overview
TROBaseSuperTCPChannel is the enhanced TCP based channel that provides a sophisticated and flexible communication channel which uses persistent connections to enable true asynchronous calls and server callbacks.
TROSuperTCPChannel and TROSynapseSuperTCPChannel contain implementation of TROBaseSuperTCPChannel via Indy and Synapse libraries accordingly.
Location
uROBaseSuperTCPChannel.pas
- Ancestry: TComponent | TROComponent | TROBaseConnection | TROTransportChannel | TROBaseActiveEventChannel | TROBaseSuperChannel | TROBaseSuperTCPChannel | Descendants
Implemented interfaces
Properties
| AckWaitTimeout |
|---|
|
Defines the time frame, in milliseconds, within which an "acknowledgement" message is expected to be received for a sent request (default is 10000, i.e. 10 seconds). If no acknowledgement has been received after the specified time, delivery will be considered to have failed.
|
| Active (declared in TROBaseSuperChannel) |
|
Allows to get channel's activity state, whether the channel active i.e. attempts to connect or already connected. Allows to activate and deactivate the channel.
|
| AutoReconnect |
|
Determines if the Super TCP Channel should automatically re-establish a connection to the server if the current connection is lost (true) or not (false, default). Set this property to true if your client needs a constant connection to the server, for example to receive callback events or asynchronous responses.
|
| AutoReconnectBehavior |
|
Sets auto reconnect behavior
TROSCAutoReconnectBehavior = (sbBeforeServerLocators, sbAfterServerLocators, sbSwitchServerLocatorAfterFirstFailure);
|
| BaseSuperConnection protected |
|
Returns TROBaseSuperConnection that was created with CreateBaseSuperConnection
|
| Busy (declared in TROTransportChannel) |
|
Informs whether the channel is currently busy executing a remote request (true) or not (false). Most channels (except most notably the TROSuperTCPChannel) are only capable of performing one request at a time; if a second request is attempted while the channel is Busy, an EROChannelBusy exception will be raised.
|
| ClientID |
|
Contains the Client ID. Client IDs are used by the RemObjects SDK for Session Management and to uniquely identify individual client on the server, for example by the Per-Client Class Factory or in your own custom code. Generally, you will not need to assign or read this value; the framework will automatically create a new unique client ID whenever a message object is instantiated on the client. However, you do have the option to read and write the ClientID property manually, for example to persist a specific client ID between shutdown and restart of your application.
|
| Connected (declared in TROBaseSuperChannel) |
|
Returns true if the channel is connected to the server.
|
| ConnectionWaitTimeout |
|
Defines the time frame, in milliseconds, within which connection to remote server should be made (default is 10000, i.e. 10 seconds).
|
| ConnectTimeout (declared in TROBaseSuperChannel) |
|
The same as above.
|
| CurrentLocator (declared in TROTransportChannel) |
|
Returns which of the fail-over/load balancing servers configured in the ServerLocators is currently active. Depending on the DispatchOptions defined, this value might change with each request, or only if the current server fails.
|
| DispatchOptions (declared in TROBaseSuperChannel) |
|
The set of options to control load balancing and fault tolerance behavior of the client channel. See TRODispatchOption.
|
| Encryption obsolete (declared in TROBaseConnection) |
|
This is DES based enscryption, it is obsolete because works only for Delphi. Use message envelope AES Encryption Envelope instead.
|
| EventReceiverList protected (declared in TROBaseActiveEventChannel) |
|
Provides a list of registered IROEventReceiver
|
| EventThreadPool (declared in TROBaseSuperChannel) |
|
Refers to the TROThreadPool instance to provide a thread pool to execute event handling routines on. If the thread pool is not set explicitly it is created autromatically upon access.
|
| FaultToleranceLocatorIdx (declared in TROTransportChannel) |
|
|
| Host |
|
Address of the server.
|
| IdleTimeoutMinutes |
|
Specifies of time frame of inactivity when the connection to server will be closed
|
| LoadBalancerLocatorIdx (declared in TROTransportChannel) |
|
|
| MaxPackageSize (declared in TROBaseSuperChannel) |
|
The maximum size of the message in bytes that can be transferred through the channel.
|
| OnAfterProbingServer (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| OnAfterProbingServers (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| OnBeforeProbingServer (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| OnBeforeProbingServers (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| OnConnected |
|
|
| OnDisconnected |
|
|
| OnLoginNeeded (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| OnProgress (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| OnReceiveStream (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| OnSendStream (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| OnServerLocatorAssignment (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| PingSecs |
|
Specifies ping interval. Should be in interval from 10 up to 60.
|
| Port |
|
Specifies the port number where the server is listening (default for the RemObjects SDK TCP servers is 8095).
|
| ProbeFrequency (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| ProbeServers (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| ReconnectDelay |
|
Specifies the time, in milliseconds, that the channel will wait after an unsuccessful (re-)connect, before it attempts the next connect, if AutoReconnect is true. Default is 500, i.e. half a second.
|
| RequestTimeout (declared in TROBaseSuperChannel) |
|
The timeout to complete the remote request on the server. Expressed in milliseconds, the default value is 60000 (60 sec). All requests that last longer than the timeout specified are considered failed.
|
| ServerLocators (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| SessionId protected (declared in TROBaseSuperChannel) |
|
The unique identifier of the current session on the server. The same as ClientId.
|
| SkipAck |
|
Defines whether "acknowledgement" messages are skipped.
|
| StoreActive (declared in TROBaseSuperChannel) |
|
Controls whether the Active property value is stored in the dfm file.
|
| SynchronizedProbing (declared in TROBaseSuperChannel) |
|
Inherited from the TROTransportChannel class.
|
| SynchronizeEvents (declared in TROBaseSuperChannel) |
|
According to the superchannel nature every remote request is processed using it's own background thread. This property controls on which thread to execute the event handlers for events connected with each remote request. If the property is set to true than all event handlers are executed on the main application thread, otherwise they are executed on the request's background thread.
|
| TargetUri (declared in TROTransportChannel) |
|
|
| TargetUrl (declared in TROBaseSuperChannel) |
|
|
| ThreadSafe protected (declared in TROTransportChannel) |
|
|
| WaitingRequests protected (declared in TROBaseSuperChannel) |
|
Internal storage of remote requests awaiting for response.
|
| WorkerThread protected (declared in TROBaseSuperChannel) |
|
Internal background threads management property.
|
Class Methods
| ChannelMatchingTargetUri (declared in TROTransportChannel) |
|---|
|
|
| ChannelMatchingTargetUrl (declared in TROTransportChannel) |
|
|
Instance Methods
| constructor Create override |
|---|
|
|
| destructor Destroy override |
|
|
| Assign override |
|
Copies property of another similar object
|
| AsyncException protected virtual (declared in TROTransportChannel) |
|
|
| BeforeDispatch protected override (declared in TROBaseSuperChannel) |
|
|
| CallbackEvents protected (declared in TROBaseActiveEventChannel) |
|
Sends event to each registered IROEventReceiver
|
| ChangeServerLocator protected override (declared in TROBaseSuperChannel) |
|
|
| CheckProperties virtual (declared in TROTransportChannel) |
|
|
| CheckStatus protected (declared in TROBaseSuperChannel) |
|
|
| CreateBaseSuperConnection protected virtual abstract |
|
Creates TROBaseSuperConnection
|
| CreateWorkerThread protected override |
|
|
| DecodeEventStream protected (declared in TROTransportChannel) |
|
|
| Dispatch (IROMessage) protected reintroduce overload (declared in TROTransportChannel) |
|
|
| DoAfterEncryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoAfterProbingServerEvent protected override (declared in TROBaseSuperChannel) |
|
|
| DoAfterProbingServersEvent protected override (declared in TROBaseSuperChannel) |
|
|
| DoBeforeDecryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoBeforeProbingServerEvent protected override (declared in TROBaseSuperChannel) |
|
|
| DoBeforeProbingServersEvent protected override (declared in TROBaseSuperChannel) |
|
|
| DoConnectedEvent protected virtual (declared in TROBaseSuperChannel) |
|
|
| DoConnectedEvent_Synch protected (declared in TROBaseSuperChannel) |
|
|
| DoDecryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoDecryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoDisconnect protected override |
|
|
| DoDisconnectedEvent protected virtual (declared in TROBaseSuperChannel) |
|
|
| DoDisconnectedEvent_Synch protected (declared in TROBaseSuperChannel) |
|
|
| DoEncryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoException protected virtual (declared in TROTransportChannel) |
|
|
| DoIdle protected |
|
|
| DoInitialConnect protected override |
|
|
| DoLoginNeeded protected virtual (declared in TROTransportChannel) |
|
|
| DoProcessError protected (declared in TROBaseSuperChannel) |
|
|
| DoReceiveStreamEvent protected override (declared in TROBaseSuperChannel) |
|
|
| DoReconnect protected (declared in TROBaseSuperChannel) |
|
|
| DoSendStreamEvent protected override (declared in TROBaseSuperChannel) |
|
|
| DoServerLocatorAssignmentEvent protected override (declared in TROBaseSuperChannel) |
|
|
| FindWaitingRequest protected (declared in TROBaseSuperChannel) |
|
|
| GetClientAddress protected override |
|
Implements IROTCPTransport.GetClientAddress and returns an IP address of a client.
|
| GetClientID protected override |
|
|
| GetConnected protected override |
|
|
| GetMaxPackageSize protected override |
|
|
| GetServerLocatorClass protected override (declared in TROBaseSuperChannel) |
|
|
| GetStrippedTargetUrl protected virtual (declared in TROBaseSuperChannel) |
|
|
| GetTargetUri protected virtual (declared in TROTransportChannel) |
|
|
| GetTargetUrl protected virtual (declared in TROTransportChannel) |
|
|
| GetTransportObject protected override (declared in TROBaseSuperChannel) |
|
|
| HasData protected (declared in TROBaseSuperChannel) |
|
|
| InDestroyingState protected (declared in TROBaseSuperChannel) |
|
|
| InitialConnect protected (declared in TROBaseSuperChannel) |
|
|
| InitServerLocator protected override (declared in TROBaseSuperChannel) |
|
|
| intChangeServerLocator protected (declared in TROTransportChannel) |
|
|
| IntDispatch protected override |
|
|
| intInitServerLocator protected (declared in TROTransportChannel) |
|
|
| IntSetServerLocator protected virtual (declared in TROTransportChannel) |
|
|
| InvokeRequest (TStream, boolean): string protected overload (declared in TROBaseSuperChannel) |
|
|
| InvokeRequest (TStream, Boolean, TROEvent): string protected override |
|
|
| IsEncryptionUsed protected (declared in TROTransportChannel) |
|
|
| Loaded protected override (declared in TROBaseSuperChannel) |
|
|
| Notification protected override (declared in TROBaseSuperChannel) |
|
|
| Probe protected (declared in TROTransportChannel) |
|
|
| ProbeAll protected (declared in TROTransportChannel) |
|
|
| ProcessEvent protected (declared in TROBaseSuperChannel) |
|
|
| RegisterEventReceiver protected virtual (declared in TROBaseActiveEventChannel) |
|
Adds IROEventReceiver to the EventReceiverList
|
| ResetProbingClone protected override (declared in TROBaseSuperChannel) |
|
|
| RetrieveMetadata protected virtual (declared in TROTransportChannel) |
|
|
| RetrieveResponse protected (declared in TROBaseSuperChannel) |
|
|
| RetrieveRODL protected (declared in TROTransportChannel) |
|
|
| ROFreeNotification (declared in TROComponent) |
|
|
| RORemoveFreeNotification (declared in TROComponent) |
|
|
| SendRemoveNotification protected (declared in TROComponent) |
|
|
| SetClientID protected override |
|
|
| SetConnectedState protected (declared in TROBaseSuperChannel) |
|
|
| SetInactive protected (declared in TROBaseSuperChannel) |
|
|
| SetMaxPackageSize protected override |
|
|
| SetServerLocator protected (declared in TROTransportChannel) |
|
|
| SetTargetUri protected override |
|
|
| SetTargetUrl protected virtual (declared in TROTransportChannel) |
|
|
| SuperChannel_RaiseError protected override |
|
|
| TriggerProgress protected override (declared in TROBaseSuperChannel) |
|
|
| UnregisterEventReceiver protected virtual (declared in TROBaseActiveEventChannel) |
|
Removed IROEventReceiver from EventReceiverList
|
| UnregisterEventReceivers protected (declared in TROBaseActiveEventChannel) |
|
Removes all items from EventReceiverList
|
| WaitForActive (declared in TROBaseSuperChannel) |
|
|
Events
| ConnectEvent (declared in TROBaseSuperChannel) |
|---|
|
|
| onAfterEncrypt obsolete (declared in TROBaseConnection) |
|
|
| OnAfterProbingServer (declared in TROTransportChannel) |
|
Fires after the channel is done probing a specific server for availability. You can use this event to check the result of the probing, possibly to update internal data structures or to display server status in the user interface.
|
| OnAfterProbingServers (declared in TROTransportChannel) |
|
Fires after the channel is done probing all servers for availability. You can use this event to check the result of the probing, possibly to update internal data structures or to display server status in the user interface.
|
| OnAsyncException (declared in TROTransportChannel) |
|
|
| onBeforeDecrypt obsolete (declared in TROBaseConnection) |
|
|
| OnBeforeProbingServer (declared in TROTransportChannel) |
|
Fires before the channel starts probing a specific server for availability. You can use this event to:
|
| OnBeforeProbingServers (declared in TROTransportChannel) |
|
Fires before the channel starts probing all servers for availability. You can use this event:
|
| OnConnected (declared in TROBaseSuperChannel) |
|
|
| OnDisconnected (declared in TROBaseSuperChannel) |
|
|
| OnException (declared in TROTransportChannel) |
|
Fires if an exception is raised during the execution of a remote request. This could be an exception returned from the server, a communication problem or an error within the client. Depending on the type of error, your event handler can try to rectify the problem, and set aRetry to true to have the channel try and perform the request again. For example, an application could show a dialog asking the user to confirm if his internet connection is available, with Cancel and Retry buttons. If aRetry is set to true and the call succeeds at the second attempt, the call will return to the original code that initiated the request, as if the exception never happened.
|
| OnFailure (declared in TROTransportChannel) |
|
|
| OnLoginNeeded (declared in TROTransportChannel) |
|
Fires if an EROSessionNotFound (or the descendant SessionNotFoundException) exception is raised during the execution of a remote request. This usually indicates that the server cannot authenticate the client or that the session has expired. The most common use for this event is to perform a call to a special Login service provided by the server (possibly after prompting the user to enter username and password), and to set the aRetry parameter to true if login was successful.
|
| OnProgress (declared in TROTransportChannel) |
|
This event fires as the channel is transferring data for a request or response to or from the server, informing of the current progress. It can be used to keep the user interface updated during lengthy transfers,e.g. by showing a progress bar or the remaining transfer volume. Note: the accuracy and frequency of calls to OnProgress depends on the channel type; since channels transport data packets in different sized chunks (or even all-at-once), OnProgress might show a very fine progress for some channels, while jumping from 0 to 100% in one step with others.
|
| OnReceiveStream (declared in TROTransportChannel) |
|
Fires after a stream with a response message has been received from the server. Use this event handler to inspect and possibly modify the stream, before it continues to be processed by the higher levels of the RemObjects SDK framework.
|
| OnSendStream (declared in TROTransportChannel) |
|
Fires just as a stream with a request message will be sent to the server. The event handler can inspect and possibly modify the stream, before it continues to be sent off to the server.
|
| OnServerLocatorAssignment (declared in TROTransportChannel) |
|
Fires before changing of a server locator
|
| ReconnectEvent (declared in TROBaseSuperChannel) |
|
|
Descendants
See Also
- TROSuperTCPChannel
- TROSynapseSuperTCPChannel
- Super TCP Channel
- Lists
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for JavaScript: Objects

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript