Client server implementation in io-streams