directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject Re: [mina] DatagramAcceptor RFE
Date Sun, 16 Oct 2005 00:20:30 GMT
Hello Alban,

2005/10/15, Alban Peignier <>:
> We're working on a Java peer-to-peer API with NAT traversal support.
> We're thinking about using the (great) Mina API to control the transport
> layer.
> Everything is fine for us, except a missing feature in the
> DatagramAcceptor. Indeed we need to artificially send a response paquet
> (when needed) from a DatagramAcceptor. With the JDK APIs, we have the
> send methods to perform it. The DatagramAcceptor (logically) doesn't
> provide a such thing. But there is no way to extend the DatagramAcceptor
> to make it possible.
> Can we find a way together to make it possible ?

You can use DatagramConnector to send message first before the remote peer
send one.

IoConnector connector = new DatagramConnector();
IoSession session = connector.connect( ... );

what we call human nature is actually human habit

View raw message