I'm using RTC SDK version 5.11
FreePascal version 2.6.0
The rtcFMX_GUI unit is included in theproject.
I'm using the TRtcHttpClient in the following config:
object RtcHttpClient: TRtcHttpClient
MultiThreaded = True
ServerAddr = '
www.myserver.com'
ServerPort = '80'
OnException = RtcHttpClientException
OnConnectFail = RtcHttpClientConnectFail
OnConnectError = RtcHttpClientConnectError
AutoConnect = True
UseProxy = True
OnInvalidResponse = RtcHttpClientInvalidResponse
end
object RtcClientModule: TRtcClientModule
AutoSyncEvents = True
Client = RtcHttpClient
ModuleHost = '
WWW.MYSERVER.COM'
ModuleFileName = '/MyServer/MyServer.dll/Server'
end
object RtcResult: TRtcResult
OnReturn = RtcResultReturn
end
The code I use to call the server is the following:
with RtcClientModule.Data.NewFunction('MyFunction') do
asString['Data'] := MyData;
RtcClientModule.Call(RtcResultReturn);
Best regards