Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 2 - Building a Server Application in Delphi
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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

Building a Server Application in Delphi
By: Leidago
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 7
    2006-12-11

    Table of Contents:
  • Building a Server Application in Delphi
  • Application Support
  • Client-Server Applications with Delphi
  • Indy Servers
  • Building a Server application

  • 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
     
     
    ADVERTISEMENT


    Building a Server Application in Delphi - Application Support


    (Page 2 of 5 )

    A server usually runs many different server applications, such as a mail, FTP or an IRC server. And each of these applications offer different services. For example, FTP is responsible for transferring files, a web server serves up web pages, and so on. TCP/IP needs to find a way to determine which incoming packet belongs to which application. For example, if a web browser requests a web page, it will have to be mapped to a web server application which is able to process and respond to the browser.

    So how does TCP/IP manage this problem? TCP/IP manages this interface between networks and applications through logical channels called ports. Each port has a number by which it is identified. A port is used by both the server and client applications to communicate. There are approximately 65000 + ports available for use. Some are called well-known ports, which are reserved for certain services:

    Service

    Port number

    SMTP

    25

    FTP

    21

    http

    80

    There are many other well-known port services; I would recommend that you google for a full list if you intend to write a lot of Internet-enabled applications.  There are also free ports, which we will use for our example application.

    I hope that the TCP/IP section of this article series has given you some background into how client server applications work behind the scenes. I have not covered a lot of it in detail, but the area that I covered should be enough to make it easy when we create example projects. It always helps to know a little bit more about what is going on in the background, so that you don't get stuck at the first sign of trouble. So far we have covered:

    • What a Client Application is and does.
    •  What a Server application is and does.
    •   What role TCP/IP plays in the client - server architecture.

    Next we'll move on to creating client-server applications.

    More Delphi-Kylix Articles
    More By Leidago


       · This article shows you how to built a server application in Delphi.
     

    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...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek