Implemented clent-server with blocking i/o