Skip to content

Instantly share code, notes, and snippets.

@zeroFruit
Created July 23, 2022 00:37
Show Gist options
  • Save zeroFruit/bb72667abd61721dce210067dae8aec7 to your computer and use it in GitHub Desktop.
Save zeroFruit/bb72667abd61721dce210067dae8aec7 to your computer and use it in GitHub Desktop.
Channel concept & implementation— el Project (2)
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