Trying to solve Client-Server data I/O Streams