Closed nayato closed 7 years ago
Support for Socket-based UDP channel in AbstractSocketChannel.OnIoCompleted
The method is called after an async socket operation completed. Currently the SocketAsyncOperation.Receive, SocketAsyncOperation.Send for TCP. However, UDP uses ReceiveFrom, SendTo pattern so we need to add support here, like case SocketAsyncOperation.ReceiveFrom: case SocketAsyncOperation.SendTo:
Thank for your comment/suggestions.
I am porting/re-implementing UDP channel.
@StormHub you may be interested in @onatm's progress on this: https://github.com/onatm/DotNetty/tree/implement-socket-based-udp-channel
@nayato @StormHub i couldn't make so much progress since i started but i'll be happy to help
It's ok. With UDP I almost have exactly the same functions as original Netty :)
Current progress on https://github.com/StormHub/DotNetty/tree/UDP Should I create some benchmark on the channel?
Initial implementation is roughly done now.
@nayato probably start another PR for this soon. I am running UDP channel in real world and how it goes.
Sorry for more extra work load for you :)
@nayato DatagramChannel final change set before PR. Anything you see I probably missed?
PR #171 created, please review.
Implemented through #171
port netty's
NioDatagramChannel
(https://github.com/netty/netty/blob/4.1/transport/src/main/java/io/netty/channel/socket/nio/NioDatagramChannel.java) derived fromAbstractSocketMessageChannel
.