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>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cloudburstmc.netty.channel.nethernet.NetherNetChannel
NetherNetChannel.PathNested classes/interfaces inherited from class io.netty.channel.AbstractChannel
io.netty.channel.AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface io.netty.channel.Channel
io.netty.channel.Channel.Unsafe -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.netty.util.AttributeKey<String>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
ConstructorsConstructorDescriptionNetherNetChildChannel(io.netty.channel.Channel parent, tel.schich.libdatachannel.PeerConnection peerConnection, InetSocketAddress remote, InetSocketAddress local) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoBind(SocketAddress localAddress) protected io.netty.channel.AbstractChannel.AbstractUnsafeMethods inherited from class org.cloudburstmc.netty.channel.nethernet.NetherNetChannel
activate, clearFailureReported, closeWebRTC, config, connectionFailed, countReceived, countSent, doBeginRead, doClose, doDeregister, doDisconnect, doRegister, doWrite, filterOutboundMessage, getPing, isActive, isCompatible, isOpen, localAddress0, metadata, registerMetrics, remoteAddress0, remoteMaxMessageSize, segment, selectedPath, setDataChannels, setRemoteAddressMethods 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, 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, writeAndFlushMethods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttrMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
-
Field Details
-
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
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:
newUnsafein classio.netty.channel.AbstractChannel
-
doBind
- Overrides:
doBindin classNetherNetChannel- Throws:
Exception
-