for client/server apps, take a look at the really bare-bones, but ultra-cool chat server/client on the "user contribution" page.. the server helped me understand the "accept" version of the "open socket" much better