Synapse provides an easy to use serial port and synchronous TCP/IP library.
https://wiki.freepascal.org/Synapse#Overview
Overview
Synapse offers serial port and TCP/IP connectivity. It differs from other libraries that you only require to add some Synapse Pascal source code files to your code; no need for installing packages etc. The only exception is that you will need an external crypto library if you want to use encryption such as SSL/TLS/SSH.
See the documentation on the official site (link below) for more details.
Installation
Installation can be as simple as simply copying over all files to your application directory and adding the relevant Synapse units to your uses clause.
A more elegant and recommended way is compiling the laz_synapse.lpk package so you can use the same units in all your projects.
Synapse download/SVN info page: Synapse download page
Support and bug reporting
The Synapse project has a mailing list where support is given and patches can be submitted.
Bug reports can also be mailed to the mailing list.
See the Synapse support page
SSL/TLS support
You can use OpenSSL, CryptLib, StreamSecII or OpenStreamSecII SSL support with Synapse. By default, no SSL support is used.
The support is activated by putting the chosen unit name in the uses section in your project. You also have to put the binary library file in your project path (Windows), or install it into your library search path (Linux, macOS, FreeBSD).
Synapse loads SSL library files in runtime as dynamic libraries.
For detailed information refer to SSL/TLS Plugin Architecture
Some crypt libraries can be obtained from: http://synapse.ararat.cz/files/crypt/
Missing library
On Linux you need to make sure the required dynamic library is present/installed on your system. In case of cryptlib if the library is not present on the system, an error message appears during linking:
/usr/bin/ld: cannot find -lcl
A similar message will be displayed when using other dynamic libraries.
沒有留言:
張貼留言