RTC Forums

Subscription => Support => Topic started by: sfarmer on February 12, 2014, 12:20:59 AM



Title: Problem with Android to Ubutnu using TRtcHTTPServer/Client
Post by: sfarmer on February 12, 2014, 12:20:59 AM
Hi,

I have written a few Apps now using your TrtcHTTPServer/Client and TrtcFunctions and I have to say I love how simple RTC is.   :D

I have written a very simple app that retrieves a text file from a Linux Server (Ubuntu 13.10). The server app is written in Lazarus and the Client App is written in XE5 (Mobile Platform).

The server seems to run fine and communicates well with the XE5 client app when running under Windows but when I try and run the same app under Android it fails.

Under windows the Server Reports the follwing events:-

  HttpServerClientConnect
  HttpServerConnect
  HttpServerSessionOpen
  ServerModuleSessionOpen

But under Android the last event that gets called is HttpServerConnect:-

  HttpServerClientConnect
  HttpServerConnect

I'm using port 13570 and the server's firewall is turned off (for now).

I have sucessfully written similar apps that talk from Android Client to Windows Server (on Port 80) but can't seem to figure out what i'm doing wrong here.

Any Ideas,

Thanks

Simon


Title: Re: Problem with Android to Ubutnu using TRtcHTTPServer/Client
Post by: Kevin Powick on February 12, 2014, 12:36:24 AM
If there is a problem with the Android support for RTC, I'm sure Danijel will get on it.  However, and unfortunately, he has stated many times that there is no support for RTC on Linux. :(

It really is too bad that RTC/FCP/Lazarus is not supported on Linux.  It's forced me to go in a different direction, and since I do not wish to maintain multiple code bases in different languages, I'm not sure how much I'll be using RTC in the future.


Title: Re: Problem with Android to Ubutnu using TRtcHTTPServer/Client
Post by: D.Tkalcec (RTC) on February 12, 2014, 07:17:13 AM
For Andoid apps, make sure to use the rtcFMX.GUI unit somewhere in your Android Project. That unit is required for all non-Windows Applications accessing the GUI, because it is responsible for synchronization between background threads and the Main thread. Check this Quick Start topic for more details (https://rtcforum.teppi.net/index.php?topic=664.0).

Best Regards,
Danijel Tkalcec


Title: Re: Problem with Android to Ubutnu using TRtcHTTPServer/Client
Post by: sfarmer on February 12, 2014, 07:58:09 AM
Hi,

Yes that was the problem, working now  :)

Thanks

Simon