{"action":"opened","issue":{"url":"https://api.github.com/repos/netty/netty/issues/3810","labels_url":"https://api.github.com/repos/netty/netty/issues/3810/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/3810/comments","events_url":"https://api.github.com/repos/netty/netty/issues/3810/events","html_url":"https://github.com/netty/netty/issues/3810","id":78806602,"number":3810,"title":"extends the ServerBootstrap class?","user":{"login":"hepin1989","id":501740,"avatar_url":"https://avatars.githubusercontent.com/u/501740?v=3","gravatar_id":"","url":"https://api.github.com/users/hepin1989","html_url":"https://github.com/hepin1989","followers_url":"https://api.github.com/users/hepin1989/followers","following_url":"https://api.github.com/users/hepin1989/following{/other_user}","gists_url":"https://api.github.com/users/hepin1989/gists{/gist_id}","starred_url":"https://api.github.com/users/hepin1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hepin1989/subscriptions","organizations_url":"https://api.github.com/users/hepin1989/orgs","repos_url":"https://api.github.com/users/hepin1989/repos","events_url":"https://api.github.com/users/hepin1989/events{/privacy}","received_events_url":"https://api.github.com/users/hepin1989/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-21T03:32:33Z","updated_at":"2015-05-21T03:32:33Z","closed_at":null,"body":"I want to using netty to implement an akka-io-extension.and I finally come up with one way to implement it.\r\nhttps://github.com/netty/netty/blob/master/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java#L181\r\n\r\nsuppose I have TcpManager and TcpListener which is created by the TcpManager when the manager received the Bind(handler:ActorRef,localAddress:InetSocketAddress ...) command.\r\n\r\n1,It will create the ServerBootstrap inside the TcpListener , setup it and call bind at it.\r\n2,When there is an Channel accepted ,I want to passing the Channel to the TcpManager as a\r\nChannelRegisterable message,then TcpManager create a child actor ,maybe ChannelActor with that channel.And then the ChannelActor send a Connected message the handler ,the handler will send an Register(handler:ActorRef) to it,after that the ChannelActor will register it channel to the childeventloopGroup.\r\n\r\nI don't want to automatic register the child Channel to the eventloop,and want control it by myself.and I found it would works by just override the init method.\r\n\r\nby another way,I think I could just replace the last channel handler after the ServerSocketChannel bound with mine.and then do that work.\r\n\r\nboth way would works.\r\n\r\nanother concern about this I could send an ChannelAcceptable message to the handler and using the handler to accept the channel,and then register it to the childEventLoopGroup just as \r\nhttps://github.com/netty/netty/blob/master/transport/src/main/java/io/netty/channel/socket/nio/NioServerSocketChannel.java#L135.\r\n\r\nbut by this way the what should int doReadMessages return ? 1 ?I could not return a Promise(size:Int) here.And if I choose this way,thefireChannelRead will never invoked cause the buf will be empty."}}