directory-dev mailing list archives

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

2005/10/15, Alban Peignier <alban.peignier@free.fr>:
>
> 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.
>
> http://wiki.tryphon.org/Kolaka_P2PNet
> http://wiki.tryphon.org/Kolaka_P2PNet#NAT_Traversal
>
> 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( ... );
session.write(...);

Thanks,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message