netty - How would you extend a Channel? -



netty - How would you extend a Channel? -

i need little help netty. wondering how extend channel interface , add together own methods , create netty utilize (or cast it)?

matt.

i guess improve solution "wrap" channel class store class in channellocal or in channelhandlercontext. jsut retrieve implementation , utilize it. allow switch between nio , oio without need worry implementation.

i'm doing similar in niosmtp: https://github.com/normanmaurer/niosmtp/blob/master/src/main/java/me/normanmaurer/niosmtp/transport/netty/nettysmtpclientsession.java

this helps decouble code.

to provide own channel need hack socket implementation. think should avoid whenever possible.

netty

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -