Class NetherNetChildChannel

java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
org.cloudburstmc.netty.channel.nethernet.NetherNetChannel
org.cloudburstmc.netty.channel.nethernet.NetherNetChildChannel
All Implemented Interfaces:
io.netty.channel.Channel, io.netty.channel.ChannelOutboundInvoker, io.netty.util.AttributeMap, Comparable<io.netty.channel.Channel>

public class NetherNetChildChannel extends NetherNetChannel
  • Field Details

    • CONNECTION_ID

      public static final io.netty.util.AttributeKey<Long> CONNECTION_ID
      The signaling connection ID this channel was accepted for.

      A child arrives on the server pipeline carrying nothing that ties it back to the offer that produced it, and arrival order does not follow the order answers were produced in.

    • PLAYER_INFO

      public static final io.netty.util.AttributeKey<PlayerInfo> PLAYER_INFO
      The peer whose validated identity assertion opened this channel, when the signaling that accepted it validates one. Signaling that carries no identity leaves it unset, so treat an absent value as an unauthenticated transport rather than an authenticated one.

      Whatever identity your protocol presents after the transport is up is not tied to this one. Compare the two, through PlayerInfo.clientPublicKey(), or a peer can replay an identity it captured from somewhere else.

  • Constructor Details

    • NetherNetChildChannel

      public NetherNetChildChannel(io.netty.channel.Channel parent, tel.schich.libdatachannel.PeerConnection peerConnection, InetSocketAddress remote, InetSocketAddress local)
  • Method Details

    • newUnsafe

      protected io.netty.channel.AbstractChannel.AbstractUnsafe newUnsafe()
      Specified by:
      newUnsafe in class io.netty.channel.AbstractChannel
    • doBind

      protected void doBind(SocketAddress localAddress) throws Exception
      Overrides:
      doBind in class NetherNetChannel
      Throws:
      Exception