Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Mormot-V2-TAsyncServer-and-Client-Connections-Example

MorMot V2 TAsyncServer and TAsyncClient Multiple Connections Example

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

<body>

pascal
???? NOTE: Check out my new mORMot V2 Socket Wrapper VCL Components!
These are modern drag-and-drop components designed for Delphi with built-in async WebSocket and socket functionality.
pascal
???? [WebSocket Components](https://github.com/BitmasterXor/mORMot2-WebSockets-VCL-Components-For-Delphi)
pascal
???? [Socket Components](https://github.com/BitmasterXor/mORMot2-Socket-VCL-Components-For-Delphi)

🔄 Delphi mORMot Sockets (Asynchronous Server)

pascal
A Delphi VCL application that creates an asynchronous server using the mORMot library. 
This server can manage multiple client connections, send messages, and dynamically update the client list.
pascal
![](/catalog-images/bb/bb1a96d281a034c87d2ea3d4.png)

📋 Features

pascal
<ul>
    <li>Asynchronous Server: Implements a non-blocking server using <code>mormot.net.async</code> and <code>mormot.net.sock</code>.</li>
    <li>Messaging: Supports sending messages to a specific client or broadcasting to all connected clients.</li>
    <li>Client Management: Displays connected clients in a <code>TListView</code> and logs server activities in a <code>TMemo</code>.</li>
    <li>Automatic Client Updates: Dynamically adds or removes clients from the list upon connection or disconnection.</li>
</ul>

🔍 Overview

pascal
<ul>
    <li><code>Button1Click</code>: Starts or stops the asynchronous server on a specified port.</li>
    <li><code>SendToSelectedClient</code>: Sends a custom message to a specific client ID.</li>
    <li><code>SendToAllClients</code>: Broadcasts a custom message to all clients.</li>
    <li><code>LogMessage</code>: Displays server logs and events in the <code>TMemo</code>.</li>
    <li><code>TConnection</code>: Handles client connections, data reading, and connection events.</li>
</ul>

🛠️ Requirements

pascal
<ul>
    <li>Delphi RAD Studio: IDE with VCL support.</li>
    <li>mORMot V2 Library: Download from [GitHub](https://github.com/synopse/mORMot2).</li>
</ul>

📜 License

pascal
This project is provided as freeware. Use at your own risk for research purposes.

📧 Contact

pascal
Discord: BitmasterXor
pascal
Developed with ?????? by BitmasterXor, using Delphi RAD Studio.