-
Notifications
You must be signed in to change notification settings - Fork 972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implemented EmbeddedChannel, LengthFieldPrepender, LengthFieldDecoder, and more #40
Conversation
/// </summary> | ||
public static int SwapInt(int value) | ||
{ | ||
byte[] bytes = BitConverter.GetBytes(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please replace with in-place bit shift-based operations, Check http://referencesource.microsoft.com/#System/net/System/Net/IPAddress.cs,aa84b64c78670092 (#else part)
I went through a good part today, will do the rest tomorrow. |
5f822dd
to
a52563e
Compare
Updated with latest changes |
a52563e
to
abfe254
Compare
{ | ||
IRunnable task = this.PollScheduledTask(time); | ||
if (task == null) | ||
return this.NextScheduledTaskNanos(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
brought AbstractContextHandler up to code EmbeddedChannelTest passes fixed LengthFieldBasedFrameDecoder finished LengthFieldPrepender finished SwappedByteBuffer
abfe254
to
2f3cef4
Compare
@nayato reformatted all code and changed the access modified on |
implemented EmbeddedChannel, LengthFieldPrepender, LengthFieldDecoder, and more
Somewhat large pull request because I needed to port over a bunch of pieces of infrastructure in order to match Netty's test suite...
SwappedByteBuffer
and implemented necessary tests and TO-DOs insideAbstractByteBuffer
ByteBufferUtil
to supportSwappedByteBuffer
AtomicReference
to DotNetty.Common.Utilities from HeliosDotNetty.Common.Concurrency.AbstractEventExecutor
andDotNetty.Common.Concurrency.AbstractScheduledEventExecutor
- extracted a lot of stuff out ofSingleThreadedEventExecutor
in order to make that happen. Will need to integrate those changes back into it.AbstractChannelHandlerContext
and deletedPipelinePropagationAttribute
since we now use the same bitmasking schema that Netty does.EmbeddedChannel
(Implement EmbeddedChannel #3),EmbeddedEventLoop
, andEmbeddedSocketAddress
DotNetty.Transport.Tests
and ported all of theEmbeddedChannel
tests that I can without implementing IEventLoop.Schedule needs to return a Task #35LengthFrameDecoderTests
andLengthFieldPrependerTests
and have both passing.LengthFieldPrepender
This pull request should make DotNetty wire-format compatible with Helios, which would allow for replacing the latter with the former inside Akka.NET. I haven't tested that yet, but it should be easily doable now.