TRONamedPipeChannel Class

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update
Interfaces — Classes — Enums — Aliases — Implements
Contents |
Overview
TRONamedPipeChannel implements a channel that uses Windows Named Pipes to communicate between a client and a server on the same machine or local network.
Location
uRONamedPipeChannel.pas
- Ancestry: TComponent | TROComponent | TROBaseConnection | TROTransportChannel | TRONamedPipeChannel
Implemented interfaces
Properties
| ActivateOnDemand |
|---|
|
Allows the channel to open the named pipe to the server automatically if needed (true, default) or not (false).
|
| Active |
|
Gets or sets whether the named pipe to the server is currently active (true) or not (false).
|
| BufferSize |
|
|
| 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.
|
| 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 |
|
Configures the available fail-over and load balancing options provided by the RemObjects SDK. By default, channels are set up to talk to one specific server only. Two independent options are available to provide fail-over and load balancing:
Enabling any of these options obviously requires the server to be implemented in a stateless way, so that it does not depend on all requests from a client going to the same server. This implies using a class factory different from Per-Client and, if sessions are used, a session manager that allows sharing of session state between servers.
|
| 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.
|
| FaultToleranceLocatorIdx (declared in TROTransportChannel) |
|
|
| isProbeMode protected (declared in TROTransportChannel) |
|
Returns True if channel is used for probing purposes
|
| LoadBalancerLocatorIdx (declared in TROTransportChannel) |
|
|
| NetworkByteOrder |
|
|
| OnAfterProbingServer |
|
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 |
|
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.
|
| OnBeforeProbingServer |
|
Fires before the channel starts probing a specific server for availability. You can use this event to:
|
| OnBeforeProbingServers |
|
Fires before the channel starts probing all servers for availability. You can use this event:
|
| OnLoginNeeded |
|
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 |
|
|
| OnReceiveStream |
|
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 |
|
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 |
|
|
| ProbeFrequency |
|
Sets at what intervals, in milliseconds, the channel will probe the servers configured in ServerLocators for availability. The default value is 60,000 (60 seconds). See the ProbeServers property for a more detailed description. Although somewhat misnamed, this property defines the Interval between probes, not the actual probing Frequency. The property name is persisted for backward compatibility.
|
| ProbeServers |
|
Toggles whether the channel will continuously probe the servers configured in ServerLocators for availability. If enabled (true), the channel will ping all servers at a regular interval to determine if they are reachable. If a server fails to respond, it will be disabled for future calls until a later probe can reach it again. The interval between probes can be configured using the ProbeFrequency property. By default, server probing is turned off.
|
| ServerID |
|
Defines the unique ID of the server to use. This must match the ServerID specified on the TRONamedPipeServer in the server application.
|
| ServerLocators |
|
Optionally, this collection property can be filled to contain a list of possible servers to be used for fail-over or load balancing purposes. Depending on the settings configured in DispatchOptions, the channel will automatically spread calls over the available servers, or fall back to another server if one fails.
|
| ServerName |
|
Specifies the name of the host running the server. This can be a host name or IP address on the local net, or "." (default), which indicates the local machine.
|
| SynchronizedProbing |
|
Determines whether server probing happens in the context of the main VCL thread (true, default) or in a background worker thread. See the ProbeServers property for a more detailed description.
|
| TargetUri (declared in TROTransportChannel) |
|
|
| TargetUrl protected (declared in TROTransportChannel) |
|
|
| ThreadSafe protected (declared in TROTransportChannel) |
|
|
Class Methods
| ChannelMatchingTargetUri (declared in TROTransportChannel) |
|---|
|
|
| ChannelMatchingTargetUrl (declared in TROTransportChannel) |
|
|
Instance Methods
| constructor Create override |
|---|
|
Creates a new instance.
|
| destructor Destroy override |
|
The standard destructor.
|
| Assign override |
|
|
| AsyncException protected virtual (declared in TROTransportChannel) |
|
Notifies about an exception in an asynchronous mode.
|
| BeforeDispatch protected virtual (declared in TROTransportChannel) |
|
Allows an implimentation to do necessary preparatory actions (checking the readiness of the channel, restore session data, etc.).
|
| ChangeServerLocator protected virtual (declared in TROTransportChannel) |
|
|
| CheckProperties override |
|
|
| Connect virtual |
|
|
| DataWaiting protected virtual |
|
|
| DecodeEventStream protected (declared in TROTransportChannel) |
|
Decrypts the stream.
|
| Disconnect virtual |
|
|
| Dispatch (IROMessage) protected reintroduce overload (declared in TROTransportChannel) |
|
Sends a request message through the Self channel for processing and gets back an aMessage. CodeGen uses this method when generating a proxy from RODL Files.
|
| DoAfterEncryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoAfterProbingServerEvent protected virtual (declared in TROTransportChannel) |
|
Fires OnAfterProbingServer event
|
| DoAfterProbingServersEvent protected virtual (declared in TROTransportChannel) |
|
Fires OnAfterProbingServers event
|
| DoBeforeDecryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoBeforeProbingServerEvent protected virtual (declared in TROTransportChannel) |
|
Fires OnBeforeProbingServer event
|
| DoBeforeProbingServersEvent protected virtual (declared in TROTransportChannel) |
|
Fires OnBeforeProbingServers event
|
| DoDecryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoDecryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoException protected virtual (declared in TROTransportChannel) |
|
Fires OnException event
|
| DoLoginNeeded protected virtual (declared in TROTransportChannel) |
|
Fires OnLoginNeeded event
|
| DoReceiveStreamEvent protected virtual (declared in TROTransportChannel) |
|
Fires OnReceiveStream event
|
| DoSendStreamEvent protected virtual (declared in TROTransportChannel) |
|
Fires OnSendStream event
|
| DoServerLocatorAssignmentEvent protected virtual (declared in TROTransportChannel) |
|
Fires OnServerLocatorAssignment event
|
| GetPipeName protected virtual |
|
|
| GetTransportObject protected override |
|
|
| InitServerLocator protected virtual (declared in TROTransportChannel) |
|
Sets CurrentLocator
|
| IntDispatch protected override |
|
|
| IsEncryptionUsed protected (declared in TROTransportChannel) |
|
Specifies current Encryption status
|
| Notification protected override (declared in TROComponent) |
|
Forwards notification messages to all owned components.
|
| Probe protected (declared in TROTransportChannel) |
|
Checks the accessibility of servers from the ServerLocators. This method is intended to provide fail-over and load balancing support in the RemObjects SDK Architecture.
|
| ProbeAll protected (declared in TROTransportChannel) |
|
Checks the availability of all known servers.
|
| ResetProbingClone protected virtual (declared in TROTransportChannel) |
|
Resets channel that is used for probing
|
| RetrieveMetadata protected virtual (declared in TROTransportChannel) |
|
Retrieves metadata from server
|
| RetrieveRODL protected (declared in TROTransportChannel) |
|
This method is used for to obtaining the RODL library from the server without havin to rely on a channel-specific mechanism (such as a HTTP request to http://servername:port/rodl).
|
| ROFreeNotification (declared in TROComponent) |
|
Forwards notification messages to all owned RO components.
|
| RORemoveFreeNotification (declared in TROComponent) |
|
Disables destruction notification for specified RO component.
|
| SendAndRecv protected virtual |
|
|
| SendRemoveNotification protected (declared in TROComponent) |
|
Sends remove notification to specified component
|
| SetServerLocator protected (declared in TROTransportChannel) |
|
Retrieves the location details of a server from aServerLocator.
|
| TriggerProgress protected virtual (declared in TROTransportChannel) |
|
Fires OnProgress event
|
Events
| 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) |
|
Fires when exception is raised in asynchronous mode
|
| 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:
|
| 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.
|
| 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
|
See Also
- Named Pipe Channel
- Channels
- Lists
- RemObjects SDK for Delphi: Interfaces — Classes — Enums — 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