Delphi Tutorial (TServerSocket With Multiple Clients Connected)

Pubblicato il: 29 febbraio 2024
sul canale di: BitmasterXor
822
20

In This tutorial I will be showing you guys how simple it is to use a TServerSocket winsock wrapper component to make an Async socket server in the Delphi programming language.

The Server will listen on a port and accept incoming client socket connections and manage them in memory allowing you to send broadcast commands (To all connected Clients) and also allow you to loop through connected clients and send messages to (only the clients that you select). This is very useful stuff because its basically a good starting point for any basic networked application.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
How to install the TClientSocket & TServerSocket Socket Components:
1. Open your Delphi IDE
2. Click Component - Install Packages...
3. A window will popup on your screen Click The "Add..." Button and then browse to the following location: C:\Program Files (x86)\Embarcadero\Studio\23.0\bin
4. Find and add the file called "dclsockets???.bpl" the ???'s represent Numbers for example since im on Delphi 12 Athens my files name is "dclsockets290.bpl". Depending on which version of RAD Studio you may be working with the Numbers will be lower than 290.
Once your done adding this file you can then find the socket components on the "Internet" tab on your component pallet.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Link to project files: https://github.com/BitmasterXor/TServ...

I hope you guys enjoy the tutorial, and if you do please don't forget to Like and subscribe for more content.


In questa pagina del sito puoi guardare il video online Delphi Tutorial (TServerSocket With Multiple Clients Connected) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato BitmasterXor 29 febbraio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 822 volte e gli è piaciuto 20 spettatori. Buona visione!