Created
July 23, 2022 00:37
-
-
Save zeroFruit/bb72667abd61721dce210067dae8aec7 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 class LocalServerChannel extends AbstractServerChannel { | |
... | |
private class LocalServerInternal extends AbstractInternal { | |
@Override | |
public void doBind(SocketAddress localAddress) { | |
ObjectUtil.checkNotNull(localAddress, "localAddress"); | |
LocalServerChannel.this.localAddress = | |
LocalChannelRegistry.register(LocalServerChannel.this, localAddress); | |
state = State.BOUND; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment