Simulate hosp srvr and client