ITMSMCPHTTPServer Interface
The listener behind the server component, as implemented for one platform.
API unit family: TMS.MCP.HTTPServer
Extends: IInterface
Syntax
ITMSMCPHTTPServer = interface(IInterface)
Remarks
Obtained from the platform's own factory and used through TTMSMCPCustomHTTPServer, which forwards its own properties here. Implement it only when adding support for a platform of your own; application code works with the component rather than with this interface.
Properties
| Name | Description |
|---|---|
| Active | Whether the listener is open. Setting it to True opens the port and starts accepting connections; setting it to False closes it. |
| BindingIP | Address to listen on. Applied when the listener opens. |
| Port | Port to listen on. Applied when the listener opens. |
| UseSSL | Whether the listener serves encrypted connections: True serves over an encrypted channel, False serves in the clear. Applied when the listener opens. |
Events
| Name | Description |
|---|---|
| OnCommandGet | Handler called for retrieval requests. |
| OnCommandOther | Handler called for requests that are not retrievals. |