test send and recive msg by socket