result = new Tuple<InetAddress, PingMethod>(address, NativePing
.getInstance());
} else if (doPortScan) {
int port = PortScan.sweepCommon(address);
result = (port != -1) ? new Tuple<InetAddress, PingMethod>(
address, new OpenSocket(port)) : null;
} else {
result = null;
}
l.stateChanged(new ChangeEvent(result));
}