previous | start | next

The TCP Connection (Revisited)

In the last several lectures, discussion of how an application protocol operates invariably starts with the phrase:
...the client process opens a TCP connection to a server, at port number xx...
In this lecture, we examine what this really means from the perspective of a programmer writing a TCP-based client or (more complex) a server.
 
We will use the Java programming language for our examples. Previously we used C, the standard system-level programming language on Unix systems. You should be aware that the concepts we will introduce in today's lecture were originally (like most Internet protocols) developed in a Unix environment, and still retain some of the flavour of Unix -- that is, when you occasionally wonder why the designers took a particular approach, the answer is quite likely "...that's how it's done in Unix..
 

 
Lecture 9: Socket Programming Interface Copyright © 2005 P.Scott, La Trobe University Bendigo.


previous | start | next