[fpc-pascal] Basic Sockets in FreePascal

Michael Van Canneyt michael at freepascal.org
Mon Jul 27 08:47:37 CEST 2015



On Sun, 26 Jul 2015, Coyo wrote:

> On Sun, 26 Jul 2015 15:47:52 +0000
> Mark Morgan Lloyd <markMLl.fpc-pascal at telemetry.co.uk> wrote:
>
>> Michael Van Canneyt wrote:
>>> On Sun, 26 Jul 2015, Coyo wrote:
>>>
>>>> I have read on the wiki and documentation that FreePascal does not
>>>> have any native support for socket handling, and that you need an
>>>> external third party library to have any support for it.
>>>
>>> This is not correct. Of course Free Pascal has native support for socket
>>> handling ?
>
> I will link the wiki articles later to demonstrate the difficulty of using
> sockets in FPC. However, I do appreciate the advice.
>
> How do you import a unit/library in FPC? Is there a .deb package or something
> that I install?

You don't need to import anything. The sockets unit is distributed with Free Pascal by default.
It talks straight to the system kernel. Just put 'uses sockets' in your uses clause.

>
> When compiling or distributing compiled FPC codebases that use external units
> or libraries in FPC, how do you go about doing that? I failed to find documentation
> illuminating how one goes about doing this. Any enlightenment would be
> greatly appreciated.

I don't understand this question ?

Michael.



More information about the fpc-pascal mailing list