Skip to content

Instantly share code, notes, and snippets.

@zeroFruit
Created July 23, 2022 00:37
Show Gist options
  • Select an option

  • Save zeroFruit/bb72667abd61721dce210067dae8aec7 to your computer and use it in GitHub Desktop.

Select an option

Save zeroFruit/bb72667abd61721dce210067dae8aec7 to your computer and use it in GitHub Desktop.

Revisions

  1. zeroFruit created this gist Jul 23, 2022.
    12 changes: 12 additions & 0 deletions LocalServerChannel.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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;
    }
    }
    }