How can I use netty to build reliable UDP?
Modify netty’s source code?
Or use netty as low level, and implement reliable at the application layer?
Thank you!
Best Regards!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on your application’s design. It is much easier to build a thin application layer (with simple data frame with sequence numbering, acknowledgement frame with received sequence number, and optional timer handlers to implement re-transmission) than modifying the Netty UDP transport source to add these things.
This approach might face some issues like, sending frames bigger thank IP frames, you have handle application PDU fragmentation, later you might have to keep adding more things to the layer. Any way I would do this only if TCP or SCTP (Netty 4.X supports SCTP) can not be used for the purpose.