a server and client to send message by socket