sample socket application (chat client)