Skip to content

Instantly share code, notes, and snippets.

@zeroFruit
Created July 23, 2022 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeroFruit/c8901df8264ceb81dc420a4f6b56e95a to your computer and use it in GitHub Desktop.
Save zeroFruit/c8901df8264ceb81dc420a4f6b56e95a to your computer and use it in GitHub Desktop.
Channel concept & implementation— el Project (2)
public interface ChannelOutboundHandler extends ChannelHandler {
/**
* Called once a bind operation is made.
*/
void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise)
throws Exception;
/**
* Called once a connect operation is made.
*/
void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, ChannelPromise promise)
throws Exception;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment