Code to demonstrate socket programming.