Skip to content
/ lnet Public

Lightweight Networking library written in Free Pascal.

Notifications You must be signed in to change notification settings

almindor/lnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • FreeBSD (tested on 13.0-RELEASE)
  • Linux (tested on Ubuntu 21.10 - Note: TLS does not work)
  • macOS 10.12 and later
  • Windows (tested on 10 with updated SSL libraries - see OpenSSL.pas for details)
  • All insecure TLS/SSL methods have been removed (ie SSL2, SSL3, TLS v1, TLS v1.1) leaving TSL v1.2 and TLS v1.3

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.

About

Lightweight Networking library written in Free Pascal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published