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.
Auf dieser Seite können Sie das Online-Video Delphi Tutorial (TServerSocket With Multiple Clients Connected) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer BitmasterXor 29 Februar 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 822 Mal angesehen und es wurde von 20 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!