Example code from CS2105, illustrating socket programming in Java.