*/
public void start(final int port, final CountDownLatch counter, final byte[] data) throws IOException {
factory = new NioDatagramChannelFactory();
ConnectionlessBootstrap bootstrap = new ConnectionlessBootstrap(factory);
bootstrap.setOption("sendBufferSize", 65536);
bootstrap.setOption("receiveBufferSizePredictorFactory", new FixedReceiveBufferSizePredictorFactory(9000));
bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
public ChannelPipeline getPipeline() throws Exception {
return Channels.pipeline(new SimpleChannelUpstreamHandler() {
private void sendMessage(ChannelHandlerContext ctx, byte[] data) {
ChannelBuffer buffer = ChannelBuffers.wrappedBuffer(data);