Created
July 23, 2022 00:29
-
-
Save zeroFruit/c8901df8264ceb81dc420a4f6b56e95a to your computer and use it in GitHub Desktop.
Channel concept & implementation— el Project (2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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