TROLocalServer 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
TROLocalServer implements a server that makes services available for consumption from within the same executable via a TROLocalChannel.
This channel is helpful when creating a single-tier version of an existing client/server application, and you want to combine client and server logic in the same executable and avoid the overhead of a "real" communication channel between client and server.
Location
uROLocalServer.pas
- Ancestry: TComponent | TROComponent | TROBaseConnection | TROServer | TROLocalServer
Implemented interfaces
Properties
| Active |
|---|
|
Toggles whether the server is ready to receive requests from clients. Depending on the server type, changing this property might open/close a network socket or otherwise toggle whether the server will process incoming requests.
|
| DefaultResponse protected (declared in TROServer) |
|
|
| Dispatchers (declared in TROServer) |
|
Specifies how incoming requests will be processed and dispatched. Depending on the server type, one or multiple dispatchers can be configured to receive messages from the client. Each dispatcher consists of a Message and an optional Name. Also, each dispatcher can be individually enabled or disabled. Each server must have at least one dispatcher configured, in order to be able to process messages. Essential Sub-Properties
In HTTP based servers (such as the TROIndyHTTPServer, the Name will be appended as folder to the server URL allowing the server to make multiple dispatchers available at different URLs.
|
| 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.
|
| Port protected (declared in TROServer) |
|
|
| ServeRodl (declared in TROServer) |
|
|
Instance Methods
| constructor Create override (declared in TROServer) |
|---|
|
|
| destructor Destroy override (declared in TROServer) |
|
|
| Assign override (declared in TROServer) |
|
|
| CheckProperties virtual (declared in TROServer) |
|
|
| DispatchMessage (IROTransport, TStream, TStream): boolean protected overload (declared in TROServer) |
|
|
| DispatchMessage (IROTransport, TStream, TStream, TROResponseOptions): boolean protected overload (declared in TROServer) |
|
|
| DoAfterEncryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoBeforeDecryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoDecryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoDecryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption2 obsolete (declared in TROBaseConnection) |
|
|
| EncodeEventStream protected (declared in TROServer) |
|
|
| GetDispatchersClass protected virtual (declared in TROServer) |
|
|
| GetPort protected virtual (declared in TROServer) |
|
|
| GetRODLReader protected (declared in TROServer) |
|
|
| GetServerType protected virtual (declared in TROServer) |
|
|
| GetTransportObject protected |
|
|
| IntDispatchMessage protected (declared in TROServer) |
|
|
| IntGetActive protected override |
|
|
| IntSetActive protected override |
|
|
| IsEncryptionUsed protected (declared in TROServer) |
|
|
| Loaded protected override (declared in TROServer) |
|
|
| Notification protected override (declared in TROServer) |
|
|
| QueryInterface protected override (declared in TROServer) |
|
|
| ROFreeNotification (declared in TROComponent) |
|
|
| RORemoveFreeNotification (declared in TROComponent) |
|
|
| SendRemoveNotification protected (declared in TROComponent) |
|
|
| SendRequest |
|
|
| SetPort protected virtual (declared in TROServer) |
|
|
| TriggerReadFromStream protected (declared in TROServer) |
|
|
| TriggerWriteToStream protected (declared in TROServer) |
|
|
Events
| onAfterEncrypt obsolete (declared in TROBaseConnection) |
|---|
|
|
| OnAfterServerActivate (declared in TROServer) |
|
Fires after the server has been activated.
|
| OnAfterServerDeactivate (declared in TROServer) |
|
Fires after the server has been deactivated. You can use this event handler to perform any cleanup you might need after the server has stopped processing new requests.
|
| onBeforeDecrypt obsolete (declared in TROBaseConnection) |
|
|
| OnBeforeServerActivate (declared in TROServer) |
|
Fires just before the server is activated. You can use this event handler to perform any initialization you might need before the server starts processing new requests.
|
| OnBeforeServerDeactivate (declared in TROServer) |
|
Fires just before the server is deactivated. You can use this event handler to perform any cleanup you might need before the server stops processing new requests.
|
| OnGetRODLReader (declared in TROServer) |
|
|
| OnReadFromStream (declared in TROServer) |
|
Fires after a stream with a request message has been received from the client. The event handler can inspect and possibly modify the stream, before it continues to be processed by the higher levels of the RemObjects SDK framework.
|
| OnWriteToStream (declared in TROServer) |
|
Fires just before a stream with a response message is sent back to the client. The event handler can inspect and possibly modify the stream, before it continues to be sent off to the client.
|
See Also
- TROLocalChannel
- Channels
- 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