extended the remote host support to the close(), read() and write() functions...