Simple example of communication using socket and cplusplus