<div>Hi</div><div><br></div><div>I'm trying to use Netty 3.1.0 BETA1 and implement an UDP client:</div><div><br></div><div><div> SocketAddress remoteAddress = new InetSocketAddress(remoteHost, remotePort);<br></div>
<div> SocketAddress localAddress = new InetSocketAddress(localPort);</div><div> ChannelFactory factory = new OioDatagramChannelFactory(Executors.newCachedThreadPool());<br></div></div><div> ClientBootstrap bootstrap = new ClientBootstrap(factory);<br>
</div><div> <a href="http://logger.info">logger.info</a>("Going to connect");<br></div><div> ChannelFuture future = bootstrap.connect(remoteAddress, localAddress);<br></div><div> <a href="http://logger.info">logger.info</a>("Going to wait");</div>
<div> future.await();</div><div><br></div><div><br></div><div>This is a very dummy client, hence there is no codec and handler.</div><div><br></div><div>When run, the program seems to be stuck at bootstrap.connect() forever ...</div>
<div>The "Going to connect" is printed but the "Going to wait" is not printed.</div><div><br></div><div><br></div><div>?</div><div><br></div><div><br></div>-- <br><br>Hez<br>