Sign in Join
Wiki copytemporary

Sockets/fr

English · Español · Français · Slovenčina

A propos

Sockets est un paquet de licence LGPL-modifiée pour Lazarus. Il définit le composant TSocketClient pour connecter les applications aux connecteurs(sockets) de serveur générique sur les reseaux TCP/IP.

Le téléchargement contient les fichiers des composants Pascal, Le fichier paquet de Lazarus, les fichiers ressource et les fichiers texte avec la licence modifiée LGPL.

Ce composant à été désigné pour les applications en exécution sur les plateformes Linux et Win32.

Auteur

Antonio d'Avino

Licence

LGPL Modifiée(Lire COPYING.modifiedLGPL et COPYING.LGPL inclu dans le paquet).

Téléchargement

La dernière réalisation stable peut être trouvée sur la page des fichier CCR de Lazarus ou sur les pages web de l'auteur http://infoconsult.homelinux.net.

historique des modifications

Feuille de route

Dépendances / Configuration requise

Statut: Beta

Issues: Testé sur Windows (Win2K) et Linux (Mdk 10.1).

Installation

Note for Win32 users: In case you experience some difficults in compiling the Pascal files, you may need to add the following path: <some-drive>:<some-path>\lazarus\lcl\units\i386\win32 (ie: c:\programs\lazarus\lcl\units\i386\win32) to the 'Other unit files ...' in 'Paths' tab of 'Compiler Options' of the lazarus package manager window.

Usage

Drop a TSocketClient component on a form, for any different client socket connections your application needs. Mandatory property of this component you have to set are:

Optional properties you may set are:

Now you can set to 'True' the property Active for opening the channel. An exception is raised if connection fails (host unreachable, no server process listening on port, network errors). The connection is closed setting 'False' the active property. Also, you can test the Active property to verify if connection status is ON (the closing of the connection by the server side set false this property).

Public methods of the TSocketClient class.

If a complete line can be copied, the function returns true. If not any LF char is encountered, the whole internal buffer is copied into the 'buffer' parameter and the function returns false.

Note: the pending content in internal buffer is available also when the connection is closed. It will be lost only when the connection is reopen.

Note: at this moment, the write methods of the class are not asynchronous, so they may be blocking for your application in case of failing. This will be fixed in next release.

Events of TSocketClient class.


From the Free Pascal wiki, page "Sockets/fr", as it stood on 2011-08-03 after a change by Chronos, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.