Home arrow Delphi-Kylix arrow Page 4 - Client/Server Applications Made Easy
DELPHI-KYLIX

Client/Server Applications Made Easy


In this five-part series of articles we are going to discuss client/server applications and the different protocols involved with them. We are also going to look extensively at parts of the TCP/IP protocol which are critical to these kinds of applications. Then we are going to discuss how and what tools to use when translating these protocols into code.

Author Info:
By: Leidago
Rating: 5 stars5 stars5 stars5 stars5 stars / 4
December 04, 2006
TABLE OF CONTENTS:
  1. · Client/Server Applications Made Easy
  2. · Client and Server Applications
  3. · Logical Addressing and Name Resolution
  4. · Error and Flow Control

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Client/Server Applications Made Easy - Error and Flow Control
(Page 4 of 4 )

So how does TCP/IP actually make sure that a request made by a client application gets to its destination? Through sequence numbers and acknowledgment messages, TCP ensures that your packet is delivered to the destination computer, and at the same time provides delivery information about the packet to the sending computer. You can view the sequence numbers, acknowledgment messages and packet information by using a packet sniffer, if you are interested in seeing how packets (data) are sent by TCP/IP. Here's a snippet of communication between two computers on a network:

|Time     | 192.168.0.2       | 192.168.0.1       |

|0.000    |         PSH, ACK - Len: 740           |Seq = 0 Ack = 0

|         |(1071)   ------------------>  (2869)   |

|0.006    |         PSH, ACK - Len: 204           |Seq = 0 Ack = 740

|         |(1071)   <------------------  (2869)   |

|0.006    |         PSH, ACK - Len: 958           |Seq = 204 Ack = 740

|         |(1071)   <------------------  (2869)   |

|0.006    |         ACK       |                   |Seq = 740 Ack = 1162

|         |(1071)   ------------------>  (2869)   |

The above is a conversation between two computers, 192.168 ....1 and 192.168...2

Messages are sent between the two computers through Ack(nowledge)ments and Seq(uences) of numbers.

Conclusion

In the next article we are going to continue discussing TCP/IP. There is only one more part to discuss, which is "Application Support." In that section we will discuss how TCP/IP maps incoming packets to the appropriate server application. We will also look at the text-based intercept of the example shown in this article.


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

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

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



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