private Port getPort(int fd) { synchronized (this) { Port port = m_OpenPorts.get(fd); if (port == null) m_ErrNo = EBADF; return port; } }