Recent

Author Topic: Cross-platform network (Windows, Mac, Linux)  (Read 5750 times)

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Cross-platform network (Windows, Mac, Linux)
« on: August 28, 2015, 09:37:35 pm »
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

  • Hero Member
  • *****
  • Posts: 5368
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #1 on: August 28, 2015, 09:50:03 pm »
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.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #2 on: August 28, 2015, 10:23:01 pm »
Internet Tools could use Synapse and:
Code: [Select]
uses simpleinternet;
..
str := retrieve('http://www.google.de');

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #3 on: August 28, 2015, 10:44:20 pm »
Just a heads up internet tools library is GPL licensed so not to be used with none GPL application.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #4 on: August 29, 2015, 05:30:09 pm »
Internet 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

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #5 on: August 29, 2015, 06:28:46 pm »
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.

Actually synapse works fine on mac (at least for me) :) .... lazarus trunk, fpc-2.6.4 .... what part does not work for you ?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #6 on: August 31, 2015, 01:46:05 am »
Actually 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

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #7 on: August 31, 2015, 09:47:27 am »
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?

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

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #8 on: August 31, 2015, 11:08:20 am »
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.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

herux

  • Full Member
  • ***
  • Posts: 102
Re: Cross-platform network (Windows, Mac, Linux)
« Reply #9 on: August 31, 2015, 11:51:32 am »
+1 synapse work fine on mac, tested on maverick dan yosemite

 

TinyPortal © 2005-2018