Mormot-V2-TAsyncServer-and-Client-Connections-Example
MorMot V2 TAsyncServer and TAsyncClient Multiple Connections Example
- Active · last change 3-10-2026
- ★ 15 on GitHub
README
<body>
???? 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.???? [WebSocket Components](https://github.com/BitmasterXor/mORMot2-WebSockets-VCL-Components-For-Delphi)???? [Socket Components](https://github.com/BitmasterXor/mORMot2-Socket-VCL-Components-For-Delphi)🔄 Delphi mORMot Sockets (Asynchronous Server)
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.📋 Features
<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
<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
<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
This project is provided as freeware. Use at your own risk for research purposes.📧 Contact
Discord: BitmasterXorDeveloped with ?????? by BitmasterXor, using Delphi RAD Studio.
