Click HERE to DOWNLOAD simple kbmMW Client and Server Demos modified to use kbmMW2RTC Transports.
NOTE: You will also need the kbmMW2RTC Transport units in the search path (link above), as well as the latest version of RTC SDK and kbmMW components installed in order to compile these Demos. The Server Demo uses SQLite, so make sure you enable it in your kbmMW config file.
Here is a short explanation for using kbmMW2RTC Transports ...
Server side:1. Create an instance of a TkbmMW2rtcServerTransport component
2. If you are creating a new Server Project, or updating a kbmMW Server Project, you also need to create a TRtcHttpServer component and set at least the "ServerPort" property to the Port number you want to use for your Server. If you are adding kbmMW functionality to your existing RTC Server Project, you will use your existing TRtcHttpServer or TRtcISAPIServer component, or a TRtcDataServerLink (or TRtcDualDataServerLink) component to add kbmMW functionality to your existing RTC Server.
3. Assign the TRtcHttpServer component (or any other TRtcDataServer descendant) to the "RtcServer" property of the TkbmMW2rtcServerTransport, or ... if you are using TRtcDataServerLink or TRtcDualDataServerLink components, assign the appropriate RtcDataServerLink component to the "RtcServerLink" property instead.
4. Set the "RtcFileName" property to the URI which you want to use. This can be "/kbm", or anything else you want to use, but make sure it is NOT already used by a RtcServerModule or a RtcDataProvider inside the same RTC Server Application. If you are hosting more than one domain on your Server, you should also assign the "RtcHost" property to the domain through which you want your kbmMW Server code to be accessible. If you leave the "RtcHost" property empty, your kbmMW code will be acessible through all domains on the Server through the assigned "RtcFileName" URI.
5. This completes the RTC side of the transport setup. Now, all you need to do to connect the transport to your kbmMWServer, is assigning your TkbmMWServer component to the "Server" property of the TkbmMW2rtcServerTransport component. For instructions on setting up kbmMW components, please check kbmMW documentation.
Client side:1. Create an instance of a TkbmMW2rtcClientTransport component
2. If you are creating a new Client Project, or updating a kbmMW Client Project, you also need to create a TRtcHttpClient component and set at least the "ServerAddr" and "ServerPort" properties to point to at the Server. Setting "AutoConnect" to TRUE will also help, so you don't need to call "Connect" manually. If you are adding kbmMW functionality to your existing RTC Client Project, you will simply use the existing TRtcHttpClient, TRtcDataClientink or TRtcDualDataClientLink component to add kbmMW functionality to your RTC Client.
3. Assign the TRtcHttpClient component (or any other TRtcDataClient descendant) to the "RtcClient" property of the TkbmMW2rtcClientTransport, or ... if you are using TRtcDataClientLink or TRtcDualDataClientLink components, assign the appropriate RtcDataClientLink component to the "RtcClientLink" property instead.
4. Set the "RtcFileName" property of the TkbmMW2rtcClientTransport component to the FileName (URI) where you've made your kbmMW Server code available. Unless you have compiled your Server into an ISAPI extension, this will be the same value as you have set up for the "RtcFileName" property on the Server in the TkbmMW2rtcServerTransport component. If you have compiled your kbmMW code into a RTC ISAPI extension, you also need to include the URI to the ISAPI on the Server in the "RtcFileName" property, just like you would for the "ModuleFileName" property on the TRtcClientModule component when accessing a TRtcServerModule running inside an ISAPI.
5. This completes the RTC Client transport setup for kbmMW. Now, all you need to do is connect that transport to your kbmMWClient components by assigning it to the "Transport" property of all your TkbmMWClient components. For instructions on setting up kbmMW components, please check kbmMW documentation.
Best Regards,
Danijel Tkalcec