System.out.println ("In TimerServiceSelect receivePacket");
buffer.clear();
while (true) {
InetSocketAddress sa;
sa = (InetSocketAddress) channel.receive (buffer);
if (sa != null) {
return (sa);
}
long sleepTime = giveup - System.currentTimeMillis();
if (sleepTime < 1) {
return (null); // time's up
}
System.out.println ("Selecting for " + (sleepTime / 1000) + " seconds");
selector.select (sleepTime);
}