What is included in the Realthinclient SDK package? |
Realthinclient SDK: Server-side components |
Rtchttpserver: implements the HTTP protocol on TCP/IP to compile the RTC component into a standalone server application (inheriting Trtcdataserver). All high-level server-side RTC components use the Trtcdataserver subclass with the HTTP client (RTC Client, Web browser, SOAP client, etc.) Communication. The best way to do this is to separate the code that you wrote with the high-level RTC component into different data modules, and then compile the rtchttpsever into a separate application (EXE) using a separate datamodule. |
Rtcisapiserver: implements an ISAPI interface to extend an ISAPI-compatible Web server (inheritance trtcdataserver). All high-level server-side RTC components use the Trtcdataserver subclass to communicate with HTTP clients (RTC clients, Web browsers, SOAP clients, and so on). The best approach is to separate the code you write with the high-level RTC component into different data modules, and then compile the rtcisapisever into an ISAPI extension (DLL) using a separate datamodule. |
Rtcmessageserver: implements a scalable, message-based server-side component that can be used to access the RTC application through a third-party message layer. The RTC SDK includes a ready-to-use NEXUSDB plug-in that uses the Rtcmessageserver component to consolidate the RTC application to the NEXUSDB server. |
Rtcdataserverlink: It is useful when you have a unit that has data that provides components or service module components that intersect, because it can cluster related data to provide components and link them to their data servers. If you have only one or a few data supply components, you can link them directly to the data server connection component without rtcdataserverlink. |
Rtcdualdataserverlink: Connect a set of RTC components to 2 or more server connectivity components (Rtchttpserver and Rtcmessageserver). This allows you to write your application only once, and can then be obtained through a standard HTTP protocol or through a secure HTTPS protocol, if needed, through different message-based transports such as the NEXUSDB Transport layer. |
rtcdataprovider: Used to implement an event that handles HTTP requests and responses. Each data provider responds only to its own request and does not process other requests. Data providers works on the server as a plug-in, which allows the data providers to develop a multifunctional server, either individually or in combination with other RTC components. Here are some possible data providers lists:
- File provider for transferring files
- PHP provider for working with PHP scripts and sending HTML pages
- SOAP provider is used to implement different Web servers
- Page providers for generating dynamic HTML pages
- Image providers for dynamically generating pictures for the web
|
Rtcservermodule: executes a set of remote functions. It allows the server to provide remote access to its own remote functions. Rtcservermodule No event executable, you only need to connect Rtcservermodule and its server on one side, and with Rtcfunctiongroup on the other side, you can activate the remote function. |
Rtcfunctiongroup: provides access to functions. When used with Rtcservermodule, it automatically activates the remote Access feature for all RTC clients. When used with Rtcclientmodule, the server can invoke the client's function in the form of a return result of a client function call. To implement a remote function, you need at least one Rtcfunctiongroup component and one or more rtcfunction components, and function groups lets you call other functions of the same group. Rtcfunctiongroup is first used by Rtcservermodule and rtcclientmodule to implement remote functions, but other components can also be used directly. |
rtcfunction: The steps to add a new remote function for your RTC Server are:
- Connect a rtcfunction to a rtcfunctiongroup,
- Make sure that the function group assigns a rtcservermodule,
- Select a "functionname" and then write your own code in the OnExecute event.
When writing a remote function, you don't have to think about anything other than your own code. Once an exception occurs (you can throw an exception in the OnExecute event), the client Gets the exception message (result.istype=rtc_exception), so you don't need to worry. |
rtcscriptengine: You can use a script language like Pascal in HTML and XML files. When using the RTC scripting engine, you can determine how many application code your Delphi functions, compiled servers, or ISAPI extensions should have, and how many scripts should be in your Html/xml file. This allows you to integrate the language and Delphi such as PHP and JSP. |
Realthinclient SDK: Client Components |
rtchttpclient: It is responsible for communicating directly with your server using the HTTP/HTTPS protocol. It sends requests initiated by the high-level client RTC components, such as Rtcdatarequest and Rtcclientmodule, and then receives the response and uses the high-level components to handle the response as well. |
rtcmessageclient: It is a component that can integrate your high-level client components, such as Datarequest and Clientmodule, into a third-party transport layer. For example, you can invoke the RTC remote function in your NEXUSDB server using the Nexusdb plugin . |
Rtcdataclientlink: It is useful when you have a large number of data request or client module cross-units. This is because it can be integrated with the cluster-related client request components and their data client connections. If you have only one or two data request components, you can integrate directly with the data client connectivity component without the need for a rtcdataclientlink. |
Rtcdualdataclientlink: used to create a small client connection pool, when a request is submitted, the component can decide which connection to use based on the number of pending requests in the currently available connection. A new request will be submitted by a connection with the fewest pending/active requests, unless you explicitly indicate a different connection object. |
rtcdatarequest: The client component that corresponds to the rtcdataprovider. It allows the client to submit requests to the RTC Server or to other HTTP servers. Using this component, you can request a file from a Web server, submit a SOAP request, execute a server-side PHP script, and so on. You can use this component to request all the services provided by the HTTP server. |
Rtcclientmodule: The client component that corresponds to the rtcservermodule. It allows the client to invoke a function provided by a service module of the server. Rtcclientmodule no event can be implemented, you only need to consolidate a client connection component (Rtchttpclient) to invoke the remote function. If you define client functions and then integrate them into Rtcclientmodule, you can execute these client remote functions. There is no particular need to implement the section. The server invokes the client remote function as a result of the client's return to the server-side call. |
Rtcresult: Handles the results returned by the remote function call. Using the Onresult event (Onresult event receive connection (sender:trtcconnection), passed parameters (Param:trtcvalue), and received results (Result:trtcvalue)), You can easily write code that handles the return results.
- Maybe just if the function performs a successful check,
- or a dialog box pops up,
- Or create a form that contains all the data received.
- or other components in the same form or datamodule (for example, populating data from the database to Clientdataset).
|