Sign in Join

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

Mailing lists / fpc-pascal / 2004-07

Socket programming with FPC

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Ivan Stamenkovic

Hello,

Is it possible to do socket programming under win32 with FPC 1.0.10 or 1.9.4? Which unit should I check out?

If possible under win32, what about DOS?

Thanks!

Reply by email

Marco van de Voort
to Ivan Stamenkovic
Is it possible to do socket programming under win32 with FPC 1.0.10 or 1.9.4?

Yes both.

For 1.9.4 complete suites (ICS, see www.overbyte.be) are available, see in CVS projects/contrib/ics and deeper.

Which unit should I check out?

sockets, winsock

If possible under win32, what about DOS?

DOS has no networking by default, and no universal API. You will have to find/make a unit that does that. Check out the contributed units page for something from Diego de Marco (or something like that).

However this is a _lot_ more difficult.

Reply by email

Ivan Stamenkovic
to Marco van de Voort

Hello Marco,

you wrote
> Is it possible to do socket programming under win32 with FPC 1.0.10 or > 1.9.4?

MvdV> Yes both.

MvdV> For 1.9.4 complete suites (ICS, see www.overbyte.be) are available, see MvdV> in CVS projects/contrib/ics and deeper.

> Which unit should I check out?

MvdV> sockets, winsock

I can't locate docs about winsock unit, though a simple program containing it in a uses list compiles fine. I have browsed through Reference Guide 1.9 from 1.0.10 package.

Best regards,
Ivan

Reply by email

Marco van de Voort
to Ivan Stamenkovic
Show quoted text 7 lines
>> Which unit should I check out? MvdV> sockets, winsock I can't locate docs about winsock unit, though a simple program containing it in a uses list compiles fine. I have browsed through Reference Guide 1.9 from 1.0.10 package.

it's a straight c->pascal conversion of the Windows api. (which itself derives from bsd sockets).

Look for windows socket programming examples (preferably delphi), and read them, then look at the FPC winsock interface.

Reply by email

Lukas Gebauer
to Ivan Stamenkovic: Is it possible to do socket programming under win32 with FPC 1.0.10 or 1.9.4? Which unit…
Is it possible to do socket programming under win32 with FPC 1.0.10 or 1.9.4? Which unit should I check out? If possible under win32, what about DOS?

For Win32 or Linux you can use my Synapse. (from my web you can download latest Synasnap version, what working with FPC 1.9.4 too).

Synapse is compatible with Delphi from version 3 (to delphi 8 for .NET!), C++Builders, Kylixes and with Freepascal, of course.

Lukas Gebauer. E-mail: WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library

Reply by email