Are there any socket library's available for Mac OSX with FPC?
I need Https communication
TIA
Paul

Mailing lists / fpc-pascal / 2008-08
24 messages · 8 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Are there any socket library's available for Mac OSX with FPC?
I need Https communication
TIA
Paul
Hello,
Synapse works extremely well with maybe only 1 change due to an undefined symbol at compile time, which can be defined as 0.
http://synapse.ararat.cz/doku.php
Cheers,
Tobias
Hi Tobias,
I already checked it, but the website says Windows and Linux only
Paul
Are there any socket library's available for Mac OSX with FPC? I need Https communication…
lNet works very well on OS X, and I prefer it instead of Synapse (http://lnet.wordpress.com/blog/ )
Thanks Damien,
never heared of it but looks good
thanks,
Paul
It works on Mac OS X as well. It just needs a C compatible library. Michael.
Hi Michael,
It works on Mac OS X as well. It just needs a C compatible library.
I never used synapse before (only ICS with Delphi), so I don't know exactly what you mean with "a C compatible library"
Where can I find it ?
Paul
I already checked it, but the website says Windows and Linux only Paul ----- Original…
Paul wroteHi Tobias, I already checked it, but the website says Windows and Linux only
It works on Mac OS X as well. It just needs a C compatible library.
Michael.
I never used synapse before (only ICS with Delphi), so I don't know exactly what you mean…
It should be present on your system by default, if I understood it correctly. But I'm not a Mac user, so you'd better ask this to an expert :-)
Michael.
I don't have a Mac yet :-(
I'm just investigating what my options are before I start the development. I've asked some questions on Mac programmers forums, but they're all fanatics.
Only a Mac is good and Windows and Linux sucks.
For development, only Xcode/Cocoa is good.
When I asked them some system related questions like altering the screenresolution etc, no one could answer.
When I mentioned FreePascal, I received no answers at all anymore. They live in a cocoon.
Paul
I already checked it, but the website says Windows and Linux only Paul ----- Original…
I already checked it, but the website says Windows and Linux only
There is also indy (10).
http://wiki.freepascal.org/Indy_with_Lazarus
http://www.indyproject.org/Sockets/fpc/index.EN.aspx
IIRC it worked fine on my ppc mac. I don't know if it has been tested on an intel one.
I don't have a Mac yet :-( I'm just investigating what my options are before I start the…
You can find similar forums for any platform and programming language.
For development, only Xcode/Cocoa is good.
This view is shared by many people simply because it's pretty all that Apple supports, and there are few providers of third party development tools on Mac OS X.
When I asked them some system related questions like altering the screenresolution etc, no one could answer.
When I mentioned FreePascal, I received no answers at all anymore.
Probably because none of them use it. If you want help with Pascal programming on the Mac, this is where you need to be: http://lists.sonic.net/mailman/listinfo/mac-pascal
They live in a cocoon.
Don't worry, they're not the only ones.
Jonas
I don't have a Mac yet :-( I'm just investigating what my options are before I start the…
As far as I can see, XCode is like TP for windows + Borland resource workshop: so quite outdated...
When I asked them some system related questions like altering the screenresolution etc, no one could answer. When I mentioned FreePascal, I received no answers at all anymore. They live in a cocoon.
Careful, because you'll get flamed for saying such things :-)
Michael.
You can find similar forums for any platform and programming language. This view is…
Hi Jonas,
Probably because none of them use it. If you want help with Pascal programming on the Mac, this is where you need to be: http://lists.sonic.net/mailman/listinfo/mac-pascal
I know this list, but it's almost dead...
Paul
Paul wrote> Probably because none of them use it. If you want help with Pascal > programming on the Mac, this is where you need to be: http://lists.sonic.net/mailman/listinfo/mac-pascal I know this list, but it's almost dead...
It's generally low traffic, but very few questions posted to it remain unanswered. As far as I am concerned, that kind of mailing list is the best.
Jonas
I never used synapse before (only ICS with Delphi), so I don't know exactly what you mean…
I never used synapse before (only ICS with Delphi), so I don't know exactly what you mean with "a C compatible library"
Well on Windows, it uses the Windows sockets and on Mac OS X, it uses the standard Unix library units that come with FreePascal. So you don't need to worry about is much more compact and less bloated than Indy, for example. If you have any problems or need any customization, you will be able to work with the Synapse source code much better than with Indy.
Kind Regards,
Tobias Giesen
Super Flexible Software Ltd. & Co. KG
Lessingstr. 42
48485 Neuenkirchen, Germany
www.superflexible.com
www.tgtools.com
----------------------------------------------------------- Registered at register court Steinfurt as HRA 5061 Liability / general partner: TGTools Ltd.
Company No. 05513299
Registered in England and Wales
Directors: Tobias Giesen and Claudia Hübl
I never used synapse before (only ICS with Delphi), so I don't know exactly what you mean…
I never used synapse before (only ICS with Delphi), so I don't know exactly what you mean with "a C compatible library"
I used ICS when it was called Fpiette components suite (it's the same thing, right?).
When I wanted to do cross-platform development with lazarus/freepascal I switched to synapse.
Keep in mind they use a different model: ics is non blocking and event based (so the communication logic is scattered in various methods) while synapse is blocking and not event based. That makes the code easier to write, read and maintain (you simply invoke methods one after another in procedural mode, e.g. connect, send, wait a reply, disconnect, etc., each method only returns when it has finished what it has to do), but if you cannot block you need to put the communication in its own thread (not a big problem for me, it may be for you).
This is just FYI.
Bye
Hi Luca,
I've used ICS a lot.
It's a very good library, but only for Delphi.
Synapse doesn't work with FPC on Mac though, only on Windows and Linux. Same for Indy.
So I'll try with lNet pointed by Damien.
thanks,
Paul
I use Synapse on Mac since two years.
Mattias
I've asked the Synapse list and since Lukas is answering on the list but got no answer, I assumed it wouldn't work.
It's also listed on his website/l only Windows and Linux.
What has to changed to use it with Mac OS X then ?
TIA,
Paul
I've asked the Synapse list and since Lukas is answering on the list but got no answer, I assumed it wouldn't work.
He has no Mac so he can not test it.
It's also listed on his website/l only Windows and Linux.
No one tested it yet carefully.
I only use some ftp and http things. So maybe some things don't work.
What has to changed to use it with Mac OS X then ?
Not much. It uses the FPC socket unit which exists on many platforms. In my old version I had to replace the 'IFDEF Linux' with 'IFDEF Unix' and to add a few 'libc' calls.
Maybe the new version has fixed that.
Mattias
Ok thanks,
I'll try it also,
I'm still waiting for my Mac though, so for the moment I can't test anything at all :-(
Paul
In the worst case you can install Darwin in a VMWare on your win/nux distrib to make tests.
It will be exactly the same, however without the GUI and the DMG installer won't work, but you can easily do it without it.
I've used ICS a lot. It's a very good library, but only for Delphi. Synapse doesn't work…
En/na Paul ha escrit:
Hi Luca, I've used ICS a lot. It's a very good library, but only for Delphi.
Yes, I'm not arguing that. I was only remarking that ICS uses a different model than indy/synapse.
See, e.g., sections "Indy is Blocking" and "Blocking is NOT Evil" in http://www.indyproject.org/docsite/html/IntroIndy.html
Bye
I used Indy also without problems, so I don't mind blocking, but it needs to run within a thread if you don't want the gui blocked . Not promoting ICS here, but with ICS you can use blocking an non-blocking together.
That's why I mostly use ICS with Delphi.
Never used Synapse before, don't know how good it is either with SSL (which I always need).
but it's time to get testing : I just receive my iMac ! I'm gonna "play" with it first this weekend and then install FPC/Lazarus (at least try to install...)
Paul