runtime: implement GetAddrListener utility function.