334335336337338339340341342343344
EPort p; if ((p = port.testPort()) == null) { EObject obj = ERT.whereis(port); if (obj == ERT.am_undefined || ((p = obj.testPort()) == null)) { throw ERT.badarg(port); } } if (!p.isOpen()) {
396397398399400401402403404
EObject p2 = ERT.whereis(port); // p2 is ERT.am_undefined if not found return p2.testPort(); } }