Skip to content

Porting status and notes

Onat Yiğit Mercan edited this page Apr 27, 2016 · 8 revisions

General Java Porting Comments

  • Lack of an access modifier in Java is the equivalent of internal in .Net.
  • If the class being ported doesn't have an access modifier then the class is internal, and all functions/fields/properties/etc.. without an access modifier can be marked as public instead of internal.

By Components

  • Common utils
  • ThreadLocalPool is Recycler
  • Task is used in place of ChannelFuture.
  • TaskCompletionSource is used in place of ChannelPromise.
  • Byte Buffers
  • IByteBuffer is ByteBuf, AbstractByteBuffer is AbstarctByteBuf, etc.
  • PooledByteBufferAllocator and PooledByteBuffer is a simple buffer pool implementation using fixed size buffers kept on ThreadPool
  • EventExecutors and EventLoops
  • Channels
  • AbstractChannel
  • AbstractSocketChannel is AbstractNioChannel
  • TcpServerSocketChannel is NioServerSocketChannel
  • TcpSocketChannel is NioSocketChannel
  • Codecs
  • ByteToMessageDecoder and MessageToMessageEncoder provide the same functionality as their counterparts in netty
  • ReplayingDecoder is a variation of netty's version. Instead of using Signal, it only provides an explicit way to request a replay.
  • DotNetty.Codecs.Mqtt contains port of MQTT codec with a few tweaks
  • SSL/TLS
  • TlsHandler uses SslStream (SChannel) to provide functionality similar to SslHandler in netty
Clone this wiki locally