this.bufferSize = bufferSize; this.ds = new DatagramSocket(port);
this(port, 8192);
byte[] buffer = new byte[bufferSize]; while (true) { DatagramPacket incoming = new DatagramPacket(buffer, buffer.length); try { ds.receive(incoming); this.respond(incoming); } catch (IOException e) { System.err.println(e); } } // end while