You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by hezjing <he...@gmail.com> on 2008/10/02 16:51:42 UTC
UDP tutorial: DatagramAcceptor.setLocalAddress()
Hi
The MINA UDP tutorial <http://mina.apache.org/udp-tutorial.html> says:
DatagramAcceptor acceptor = new DatagramAcceptor();
acceptor.setLocalAddress(new InetSocketAddress(PORT));
But it seems that the setLocalAddress() is not available in MINA 2.0-M3 ?
--
Hez
Re: UDP tutorial: DatagramAcceptor.setLocalAddress()
Posted by Edwin Lee <ed...@yahoo.com.sg>.
Hi,
i think you've already found an answer to this.
Anyway,
You can either use setDefaultLocalAddress,
or, when binding, just use the overload of the bind method which takes in a
SocketAddress.
HTH,
Edwin
--- hezjing <he...@gmail.com> wrote:
> Hi
> The MINA UDP tutorial <http://mina.apache.org/udp-tutorial.html> says:
>
> DatagramAcceptor acceptor = new DatagramAcceptor();
> acceptor.setLocalAddress(new InetSocketAddress(PORT));
>
>
> But it seems that the setLocalAddress() is not available in MINA 2.0-M3 ?
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/sg/