[text] int DoorProtocol g KnockSharply cc AwaitAnswer Reply if cc timeout if Reply Enter returnEnterOffice else if Reply Wait cc AwaitHailHail if cc timeout returnComeBackLater if cc DoorOpen Hail ComeIn returnEnterOffice i else if Reply Busy DealWithRejection i returnComeBackLater