Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-08

Socket library for Mac OS X

24 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul
to Tobias Giesen

Hi Tobias,

I already checked it, but the website says Windows and Linux only

Paul

Earlier message 25 lines
----- Original Message ----- From: "Tobias Giesen" To: "FPC-Pascal users discussions" Sent: Wednesday, August 27, 2008 6:23 PM Subject: [fpc-pascal] Re: Socket library for Mac OS X > 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 > > http://www.superflexible.com > > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >

Reply by email

Paul
to Damien Gerard

Thanks Damien,

never heared of it but looks good

thanks,

Paul

Earlier message 15 lines
----- Original Message ----- From: "Damien Gerard" To: "FPC-Pascal users discussions" Sent: Wednesday, August 27, 2008 7:17 PM Subject: Re: [fpc-pascal] Socket library for Mac OS X Le Aug 27, 2008 à 1:06 PM, Paul a écrit : > Are there any socket library's available for Mac OSX with FPC? > > I need Https communication > > TIA

Reply by email

Michael Van Canneyt
to Paul: I already checked it, but the website says Windows and Linux only Paul ----- Original…
Paul wrote
Hi 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.

Show quoted text 35 lines
Paul ----- Original Message ----- From: "Tobias Giesen" To: "FPC-Pascal users discussions" Sent: Wednesday, August 27, 2008 6:23 PM Subject: [fpc-pascal] Re: Socket library for Mac OS X > 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 > > http://www.superflexible.com > > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Michael Van Canneyt
to Paul: I never used synapse before (only ICS with Delphi), so I don't know exactly what you mean…
Paul wrote 6 lines
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 ?

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.

Reply by email

Paul
to Michael Van Canneyt

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

Earlier message 29 lines
----- Original Message ----- From: "Michael Van Canneyt" To: "FPC-Pascal users discussions" Sent: Wednesday, August 27, 2008 8:17 PM Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X > > > On Wed, 27 Aug 2008, Paul wrote: > >> 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 ? > > 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. > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >

Reply by email

Jonas Maebe
to Paul: I don't have a Mac yet :-( I'm just investigating what my options are before I start the…
Paul wrote 6 lines
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.

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.

http://developer.apple.com/documentation/GraphicsImaging/Conceptual/QuartzDisplayServicesConceptual/Introduction/Introduction.html

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

Reply by email

Michael Van Canneyt
to Paul: I don't have a Mac yet :-( I'm just investigating what my options are before I start the…
Paul wrote 5 lines
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.

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.

Reply by email

Tobias Giesen
to Paul: 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

Reply by email

Luca Olivetti
to Paul: 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

Luca

Reply by email

Paul
to Luca Olivetti

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

Reply by email

Mattias Gaertner
to Paul
Show quoted text 8 lines
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.

I use Synapse on Mac since two years.

Mattias

Reply by email

Paul
to Mattias Gaertner

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

Earlier message 27 lines
----- Original Message ----- From: "Mattias Gaertner" To: Sent: Thursday, August 28, 2008 8:31 PM Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X > On Thu, 28 Aug 2008 20:16:03 +0200 > "Paul" wrote: > >> 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. > > I use Synapse on Mac since two years. > > Mattias > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >

Reply by email

Mattias Gaertner
to 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

Reply by email

Paul
to Mattias Gaertner

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

Earlier message 36 lines
----- Original Message ----- From: "Mattias Gaertner" To: Sent: Thursday, August 28, 2008 9:44 PM Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X > On Thu, 28 Aug 2008 20:57:22 +0200 > "Paul" wrote: > >> 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 > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >

Reply by email

Damien Gerard
to Paul
Paul wrote 7 lines
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 :-(

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.

Show quoted text 44 lines
Paul ----- Original Message ----- From: "Mattias Gaertner" < > To: Sent: Thursday, August 28, 2008 9:44 PM Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X > On Thu, 28 Aug 2008 20:57:22 +0200 > "Paul" wrote: > >> 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 > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Damien Gerard Si ces robots s'humanisaient, inversement les êtres humains se robotiseraient-ils ?

Reply by email

Paul
to Luca Olivetti

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

Earlier message 27 lines
----- Original Message ----- From: "Luca Olivetti" To: "FPC-Pascal users discussions" Sent: Friday, August 29, 2008 9:29 AM Subject: Re: [fpc-pascal] Re: Socket library for Mac OS X > 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 > -- > Luca > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >

Reply by email