[fpc-pascal] libevent for socket

Michael Van Canneyt michael at freepascal.org
Thu Jan 21 10:37:28 CET 2016



On Thu, 21 Jan 2016, Bo Berglund wrote:

> On Sun, 17 Jan 2016 16:34:45 -0300, silvioprog
> <silvioprog at gmail.com> wrote:
>
>> On Tue, Jan 5, 2016 at 12:15 PM, Xiangrong Fang <xrfang at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> Could anyone help me with some samples of writing socket program with
>>> libevent, or is there any adapter/wrapper already exists for freepascal?
>>>
>>
>> I used libevent in a C project, but you can use it easily with Pascal (FPC
>> and/or Delphi). For example, I did this small draft [1] that compiles in
>> Free Pascal (it is just a helloworld fast HTTP server), using the libevent
>> 2.0.5:
>>
>
> Is this a purely Windows thing or is it portable to all environments
> supported by FreePascal, like Linux on ARM etc?
> There seems to be conditionals for MSWINDOWS but nothing else....

It works on all unix (including raspberry) platforms as well.

Michael.


More information about the fpc-pascal mailing list