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
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.netty.channel.AbstractChannel

    io.netty.channel.AbstractChannel.AbstractUnsafe

    Nested classes/interfaces inherited from interface io.netty.channel.Channel

    io.netty.channel.Channel.Unsafe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.netty.util.AttributeKey<Long>
    The signaling connection ID this channel was accepted for.
    static final io.netty.util.AttributeKey<PlayerInfo>
    The peer whose validated identity assertion opened this channel, when the signaling that accepted it validates one.

    Fields inherited from class org.cloudburstmc.netty.channel.nethernet.NetherNetChannel

    config, localAddress, METADATA, open, peerConnection, pendingWrites, reliableChannel, remoteAddress, unreliableChannel
  • Constructor Summary

    Constructors
    Constructor
    Description
    NetherNetChildChannel(io.netty.channel.Channel parent, tel.schich.libdatachannel.PeerConnection peerConnection, InetSocketAddress remote, InetSocketAddress local)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doBind(SocketAddress localAddress)
     
    protected io.netty.channel.AbstractChannel.AbstractUnsafe
     

    Methods inherited from class io.netty.channel.AbstractChannel

    alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doShutdownOutput, equals, eventLoop, filterOutboundMessage, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlush

    Methods inherited from class io.netty.util.DefaultAttributeMap

    attr, hasAttr

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.netty.util.AttributeMap

    attr, hasAttr
  • 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