Sockets
Motivation
Overview
Two types of sockets
Why use unreliable services?
All you need to know about networking
Why use sockets?
Sockets Undressed
Addresses
Byte Ordering
Network byte ordering
Specifying Addresses
Some helper functions
Using Sockets
Binding an address to a socket
More on binding
Connecting to a socket
Listening on a socket
Listening leads to acceptance
Stepping back
Sending and Receiving
Datagrams are unconnected
Shutting down
Who's Out There?
Writing a Server
A Simple Web Server
Processing the request
The Client Side
Concurrency
Concurrent requests
Problems with Sockets
Summary
Email: bershad@cs.washington.edu
Home Page: http://www.cs.washington.edu/education/courses/451/CurrentQtr/