Examples of socket programming with Server and client pair