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

IPWorks-TCP-Socket-Multiple-Connections

IPWorks TCP Socket Multiple Connections Example

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Delphi TCP Server Application

This Delphi VCL application demonstrates a TCP server using the TipwTCPServer component from the IPWorks library. The server handles client connections, broadcasts messages, and supports sending messages to individual clients.

Screenshot of the Delphi TCP Server Application

Features

  • Client Management: Tracks connected clients and updates the list view.
  • Broadcast Messaging: Sends messages to all connected clients.
  • Targeted Messaging: Sends messages to a specific client selected from the list view.

Components

  • TipwTCPServer: Manages TCP server communications.
  • TListView (scListView1): Displays connected clients.
  • TStatusBar (scStatusBar1): Shows server status and client count.
  • TPopupMenu (PopupMenu1): Provides options for broadcasting messages or sending targeted messages.

Usage

  1. Start the Application: Run the Delphi project to start the TCP server.
  2. Connect Clients: Clients can connect to the server using the specified port (3434).
  3. Broadcast Message: Use the context menu option S1 to send a message to all connected clients.
  4. Send to Selected Client: Use the context menu option S2 to send a message to a specific client selected from the TListView.

Dependencies

  • Delphi RAD Studio: Required for compiling and running the project.
  • IPWorks: Includes the TipwTCPServer component for TCP functionality. You can find it in this zip file: TipwTCPServer Library.7z

License

This project is provided "as is", without warranty of any kind.

Built with Delphi RAD Studio with ❤️ by BitmasterXor.