A demo of socket basics. Note: This example is incomplete (for one thing, it has no error handling).