Delphi-Kylix
  Home arrow Delphi-Kylix arrow Creating Chat Application with Borland Del...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Creating Chat Application with Borland Delphi/Indy: The Client
By: Jacques Noah
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 21
    2006-01-09

    Table of Contents:
  • Creating Chat Application with Borland Delphi/Indy: The Client
  • Building the User Interface
  • The Code – Dealing with messages sent from the Server
  • The TLog/TReading Classes
  • Sending a request to the Server

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Iron Speed
     
    ADVERTISEMENT

    Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!

    Creating Chat Application with Borland Delphi/Indy: The Client


    (Page 1 of 5 )

    In this third article in a series on building a chat application, you will learn how to build the user interface, how to create code to deal with messages sent from the server, how to send a request to the server, and more.


    A downloadable zip of the COMPLETE source code for the application is available here.

    Introduction

    In this part we are going to build the Client side of the chat server application. This is the visual representation of the entire application. This is the part the user will use to interact with the server, as well as with other people on the chat. The diagram below shows how this works:

    Creating the client is very simple, because all the hard work is done by the server. All that the client application really does is send a series of commands (remember our custom communication protocol?); the server executes the commands. The first part of the client application deals with receiving messages from the server. The second part deals with sending requests to the server.

    Requirements for the Client Application:

    • We want to be able to get a record of every client on the chat.
    • We want to be able to send files and take screenshots of connected clients.
    • We want it to send text to everybody or a single person (private chat), with the possibility of doing a three way chat.
    What you need

    You need to have Indy 9 or 10 installed. If you have Delphi 6 and above, then you can skip this section; otherwise go to www.indyproject.org and download the version appropriate to your Delphi version. I am using Delphi 7 and Indy 10.0.52. There are proper guides, available on the indy site, on how to install Indy on your computer.

    Let's get started!

    More Delphi-Kylix Articles
    More By Jacques Noah


       · [i]In this third article in a series on building a chat application, you will learn...
       · Can i Donwload the source ? somwhere ?thnx
       · The code posted in this article isn't complete! Please, man! Post the complete...
       · how do you make categorys and sub categorys in the action manager.Need Help!!!
     

    DELPHI-KYLIX ARTICLES

    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...
    - Using the Client Dataset in Two-Tiered Clien...
    - Using the Client Dataset in File-Based Archi...
    - Demystifying the Client Dataset
    - Working with INI Files in Delphi
    - Creating Data Link (UDL) Files in Delphi
    - Looking at the Details for an Invoicing Appl...
    - Invoicing in Delphi: Show Me the Money
    - Saving Images and Binary Files to a Database...
    - Saving Files to a Database using Delphi: Sav...
    - Creating CF Applications and Integrating a S...
    - Using Try and Finally to Help Prevent Memory...
    - The Implementation of an FTP Server
    - FTP Server: The Theory


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway