UNIX
Network Programming
with TCP/IP
Course
Outline
Alan Dix
http://www.hcibook.com/alan
Session 1 Internet Basics
Session 2 First Code
Session 3 Standard Applications
Session 4 Building Clients
Session 5 Servers I
Session 6 Servers II
Session 7 Security
Three interrelated aspects:
❍ TCP/IP protocol suite
❍ standard Internet applications
❍ coding using UNIX sockets API
UNIX
TCP/IP
Short Course Notes Alan Dix © 1996 1
UNIX
Network Programming
with TCP/IP
Reading
Books:
1. W. Richard Stevens, "TCP/IP Illustrated. Vol. 1: The protocols", Addison
Wesley, 1994, (ISBN 0-201-63346-9).
Explains the protocols using network monitoring tools without programming.
2. Douglas E. Comer and David L. Stevens, "Internetworking with TCP/IP.
Vol.3: Client-server programming and applications BSD socket version",
Prentice Hall, 1993, (ISBN 0-13-020272-X).
Good book about principles of client/server design. Assumes you have some
knowledge or at least some other reference for actual programming.
3. Michael Santifaller , translated by Stephen S. Wilson, "TCP/IP and ONC/NFS
internetworking in a UNIX environment", 2nd Edition, Addison Wesley, 1994,
(ISBN 0-201-42275-1).
Covers more ground less deeply. Translation from German seems good.
4. W. Richard Stevens, "UNIX Network Programming", Prentice Hall, 1990,
(ISBN 0-13-949876-1).
A programming book. I'm waiting for a copy, but Stevens is a good writer and
this book is recommended by other authors.
See also:
• your local manual pages (man 2)
• RFCs
Requests for comments (RFCs)
• these are the definition of the Internet protocols
• obtain via anonymous ftp from sun.doc.ic.ac.uk (193.63.255.1)
login as anonymous
give your email address as password
cd to rfc
UNIX
TCP/IP
Short Course Notes Alan Dix © 1996 2
UNIX
Network Programming
with TCP/IP
UNIX
Network Programming
with TCP/IP
UNIX
Network Programming
with TCP/IP
UNIX
Network Programming
with TCP/IP
UNIX
Network Programming
with TCP/IP
Session 1
Internet Basics
UNIX
Network Programming
with TCP/IP
Session 1
Alan Dix
http://www.hcibook.com/alan
• origins
• internets and the Internet
• protocol layers
• addressing
• common applications
☞ using them
• TCP and UDP
• port numbers
• APIs
☞ information calls
UNIX
TCP/IP
Short Course Notes Alan Dix © 1996 1