_datagramSocket.close();
}
public void accept(int acceptorID) throws IOException, InterruptedException
{
DatagramPacket p = _packets[acceptorID];
_datagramSocket.receive(p);
int length = p.getLength();
if (length == 2 || length == 4) return;
byte[] b = new byte[length];
System.arraycopy(p.getData(), 0, b, 0, length);
Buffer buffer = new ByteArrayBuffer(b);
UdpBuffer udpBuffer = new UdpBuffer();
udpBuffer._buffer = buffer;
udpBuffer._address = p.getAddress();
udpBuffer._port = p.getPort();
synchronized (_bufferQueue)
{
if (_bufferQueue.size() < 1024)
{