implemented client send, and server read/recv