}
public void messageReceived(ServerMessage msg)
{
if (msg instanceof AltDownloadAckMessage) {
AltDownloadAckMessage m = (AltDownloadAckMessage)msg;
if (m.nick.equals(user.getName())
&& m.filename.equals(requestFilename)) {
m.consume();
host = m.ip;
port = m.port;
// wake up thread waiting in connect()
synchronized (lock) {