Le 5/14/12 8:02 PM, Florin Sultan a écrit :
Hi,
Hi,
I apologize if this is a recurring query (although I found no definite
answer while browsing the site and the archive).
This is the first time such a question is raised here !
I guess it would eventually be answered by the missing chapter 6 titled
"Transports" in the user guide.
The question :
I am looking for information on how to make MINA use another transport
underneath (beside TCP/UDP).
MINA is based on the underlaying Java Socket API, whch currently support
only TCP and UDP. As UDT is built on top of UDP, it can be seen as a
protocol layer, not a transport layer. Thus, there is absolutely nothing
that forbid you to implement UDT on top of MINA.
So far I could not find a way to just "configure" MINA, so my guess is some
work needs to be done to integrate a different transport.
Certainly. First, you'll have to implement a codec to support the data
encapsulating the payload, and you'll have to manage the sessions, as
it's a connected protocol.
So:
Is there a generic recipe for use/integration of a new transport in MINA?
First consider that it's a protocol, not a transport.
Has anyone done this before ?
I have helped implementing LDAP and Kerberos protocols, on top of TCP
and UDP (kerberos)
What are the requirements ?
The specificiations :)
What would be the complexity ?
I hav'nt read the protocol yet, so I can't really tell. Depends on the
coplexity of the headers, and also the complexity of the protocol itself
(how do we handle disconnection, fragmentation, retry, etc)
Hope it helps...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com