Connected UDP...

"Trustin Lee (이희승)" trustin at gmail.com
Mon Jan 25 04:02:33 EST 2010


Hi Martin,

You need to implement a new transport instead of modifying the existing
UDP transport.  Unfortunately, there is no handy guide for implementing
a new transport.  I would suggest you to begin from choosing and forking
an existing transport.  I would begin from the TCP transport because you
want something connection-oriented.  You will end up with removing a lot
of unnecessary code later though.  It will be helpful to keep referring
to the existing UDP transport code from time to time so that you don't
remove what's required for a transport to function though. :)

It's always an interesting experience to see someone tries to implement
a new transport on top of the abstract API I've created.  Please keep us
posted about your progress.  I'd like to give as much advise as I can.

Cheers,
Martin

Martin Rogan wrote:
> I'm three weeks into my multi-protocol project and already have TCP, SSL,
> HTTP and UDP up and running... or so I thought! Having moved from MINA I was
> caught out by the connection-less nature of UDP in Netty. I want UDP to
> behave as-if it was connected. What is my best option from here? Can I
> extend my own "transport provider" and implement ServerChannel,
> ChannelConfig, ServerChannelFactory, ChannelSink, etc. (as per
> http://rafaelmarins.com/tag/netty)? Or should I be working in the Netty
> source tree directly to do this kind of stuff? Either way is there some sort
> of cookbook/example I can follow? Thanks, Martin.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100125/4a805d76/attachment.bin 


More information about the netty-users mailing list