2005/10/15, Alban Peignier <[EMAIL PROTECTED]>:
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
-- 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/
