/** * Returns the process which is bound to the given address. This returns null if there isn't any * process with the given binding. * * @param binding The address to inspect. * @return The process which binds itself to the given address. */ public Process getProcess(Address binding) { for (Process process : getAllProcesses()) { if (process.getExecutor().getPacketListener(binding) != null) { return process; } } return null; }