ConnectionlessBootstrap UDP on network

rBlitz blitzquest at hotmail.com
Thu Aug 25 10:35:32 EDT 2011


Hi,

I'm a new Netty user and I want to test a simple UDP client.
I have on th other side, an C++ UDP producer.

All is alrigth when I check it on my computer with 127.0.0.1 or my IP but
when I try to connect my netty to an other pc ... nothing happens... an idea
? 

This is my code :

DatagramChannelFactory f =
new NioDatagramChannelFactory(Executors.newCachedThreadPool());

bootstrap = new ConnectionlessBootstrap(f);

//Set up handler
final UDPClientHandler handler = new UDPClientHandler(this, name);

// Set up the pipeline factory.
bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
public ChannelPipeline getPipeline() throws Exception {
	return Channels.pipeline(handler);}
});		


bootstrap.setOption("receiveBufferSizePredictorFactory",
	new FixedReceiveBufferSizePredictorFactory(65500));  
         
bootstrap.setOption("reuseAddress", true);

bootstrap.setOption("remoteAddress", ip);
bootstrap.bind(new InetSocketAddress(port));
}

Thanks in advance!

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/ConnectionlessBootstrap-UDP-on-network-tp6724676p6724676.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list