Home arrow Delphi-Kylix arrow Creating Chat Application with Borland Delphi/Indy: The Client
DELPHI-KYLIX

Creating Chat Application with Borland Delphi/Indy: The Client


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.

Author Info:
By: Jacques Noah
Rating: 5 stars5 stars5 stars5 stars5 stars / 28
January 09, 2006
TABLE OF CONTENTS:
  1. · Creating Chat Application with Borland Delphi/Indy: The Client
  2. · Building the User Interface
  3. · The Code – Dealing with messages sent from the Server
  4. · The TLog/TReading Classes
  5. · Sending a request to the Server

print this article
SEARCH DEVARTICLES

Creating Chat Application with Borland Delphi/Indy: The Client
(Page 1 of 5 )


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!


blog comments powered by Disqus
DELPHI-KYLIX ARTICLES

- Loading an XML Document into the DOM
- Delphi Wrapper Classes and XML
- Delphi and the DOM
- Delphi and XML
- Internet Access: Client Service
- Finishing the Client for an Internet Access ...
- The Client for an Internet Access Control Ap...
- User Management for an Internet Access Contr...
- Important Procedures for an Internet Access ...
- Server Code for an Internet Access Control A...
- Constructing the Interface for an Internet A...
- Building a Server Application for an Interne...
- Building an Internet Access Control Applicat...
- Client Dataset: Working with Data Packets an...
- Using the Client Dataset in an N-Tiered Appl...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials