Home

Awesome

Updated to compile on FreeBSD, Linux, macOS and Windows

Quite a few changes were required, but all the examples now compile with FPC 3.2.2 or 3.3.1 on:

Instructions:

  1. Compile with FPC 3.2.2 or FPC 3.3.1
  2. Download a ZIP file and unzip
  3. cd to the lnet-master directory
  4. run make (this compiles the library and console examples - there are no Cocoa/Carbon hooks for the visual components, so they do not compile for macOS)
  5. For Lazarus, add the path to lnet-master/lib to the Project Options > Paths - "Other unit files" OR
  6. For FPC, use -Fu to add the path to lnet-master/lib

Original ReadMe Content

Lightweight Networking Library

These units are an asynchronous, TCP/UDP communications classes. LTCP, LUDP, LTELNET, LFTP and LSMTP are example programs.

Use the makefile to compile the lib as well as examples.

All programs are compiled with Free Pascal 2.0.4 (http://www.freepascal.org)

Copyright (c) 2005-2018 by Ales Katona and Micha Nelissen.

lNet as of version 0.6+ uses OpenSSL when SSLSession is used.

LICENSING

lNet units (units in lib and lazaruspackage directories) are licensed under a modified LGPL license. See file lib/LICENSE and lib/LICENSE.ADDON.

The modification allows to static/smart - link lNet libraries into binary applications without providing sources.

Example programs are provided under unmodified gnu GPL. See examples/LICENSE for more information.

INSTALLING

See file INSTALL.md for more information.