Cross-platform network (Windows, Mac, Linux) lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Trenatos · 2015-08-28 19:37 Sorry if this is a stupid question, but what's the best choice for cross platform networking? I just need to load/get websites and files, nothing fancy, but I need it to work on at least the three big platforms. ---------------------------------------------------------------------- taazz · 2015-08-28 19:50 I think that indy http://www.indyproject.org/index.en.aspx supports mac, linux and windows so is synapse http://wiki.freepascal.org/Synapseand the included in fpc fphttpclient http://wiki.freepascal.org/fphttpclientclass. a more to the point library would be the curl library http://curl.haxx.se/libcurl/pascal/ that (I think) supports a lot more that the 3 big platforms. ---------------------------------------------------------------------- engkin · 2015-08-28 20:23 Internet Tools could use Synapse and: Code: [Select]uses simpleinternet; .. str := retrieve('http://www.google.de'); ---------------------------------------------------------------------- taazz · 2015-08-28 20:44 Just a heads up internet tools library is GPL licensed so not to be used with none GPL application. ---------------------------------------------------------------------- Leledumbo · 2015-08-29 15:30 Quote from: engkin on August 28, 2015, 10:23:01 pmInternet Tools could use Synapse... AFAIK Synapse doesn't work on Mac, at least untested. The same applies to LNet. fcl-web, however, should be available for Mac. No idea about Indy since I never use it. ---------------------------------------------------------------------- zeljko · 2015-08-29 16:28 Quote from: Leledumbo on August 29, 2015, 05:30:09 pmAFAIK Synapse doesn't work on Mac, at least untested. The same applies to LNet. fcl- web, however, should be available for Mac. No idea about Indy since I never use it. Actually synapse works fine on mac (at least for me) .... lazarus trunk, fpc-2.6.4 .... what part does not work for you ? ---------------------------------------------------------------------- Leledumbo · 2015-08-30 23:46 Quote from: zeljko on August 29, 2015, 06:28:46 pmActually synapse works fine on mac (at least for me) .... lazarus trunk, fpc-2.6.4 .... what part does not work for you ? Should've stripped the first phrase. It's just not advertised to run on mac, only windows and linux. Perhaps a lucky coincidence considering mac is now a *nix just as linux? ---------------------------------------------------------------------- marcov · 2015-08-31 07:47 Quote from: Leledumbo on August 31, 2015, 01:46:05 amShould've stripped the first phrase. It's just not advertised to run on mac, only windows and linux. Perhaps a lucky coincidence considering mac is now a *nix just as linux? It depends if the code has been properly converted from Kylix (unit libc) to the FPC rtl (Unix, sockets).   The FPC rtl is reasonably abstracted over unices from the start (it originates on FreeBSD actually) ---------------------------------------------------------------------- Thaddy · 2015-08-31 09:08 Synapse works fine on Macs. Basically it works on most if not all fpc supported unix-like platforms with a OSI layer 1-4 and Berkeley socket conformant implementation and on Windows that almost complies with these. ---------------------------------------------------------------------- herux · 2015-08-31 09:51 +1 synapse work fine on mac, tested on maverick dan yosemite