Class NetherNetChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
org.cloudburstmc.netty.channel.nethernet.NetherNetChannel
- All Implemented Interfaces:
io.netty.channel.Channel,io.netty.channel.ChannelOutboundInvoker,io.netty.util.AttributeMap,Comparable<io.netty.channel.Channel>
- Direct Known Subclasses:
NetherNetChildChannel,NetherNetClientChannel
public abstract class NetherNetChannel
extends io.netty.channel.AbstractChannel
-
Nested Class Summary
Nested 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 TypeFieldDescriptionprotected DefaultNetherChannelConfigprotected SocketAddressprotected static final io.netty.channel.ChannelMetadataprotected booleanprotected tel.schich.libdatachannel.PeerConnectionprotected tel.schich.libdatachannel.DataChannelprotected SocketAddressprotected tel.schich.libdatachannel.DataChannel -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNetherNetChannel(io.netty.channel.Channel parent, InetSocketAddress remote, InetSocketAddress local) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCloses the data channels and peer connection, dropping their listeners first.io.netty.channel.ChannelConfigconfig()protected voidprotected voiddoBind(SocketAddress localAddress) protected voiddoClose()protected voidprotected voidprotected voidprotected voiddoWrite(io.netty.channel.ChannelOutboundBuffer in) booleanisActive()protected booleanisCompatible(io.netty.channel.EventLoop loop) booleanisOpen()protected SocketAddressio.netty.channel.ChannelMetadatametadata()protected SocketAddressvoidsetDataChannels(tel.schich.libdatachannel.DataChannel reliable, tel.schich.libdatachannel.DataChannel unreliable) voidsetRemoteAddress(SocketAddress remoteAddress) 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, newUnsafe, 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
-
METADATA
protected static final io.netty.channel.ChannelMetadata METADATA -
config
-
peerConnection
protected volatile tel.schich.libdatachannel.PeerConnection peerConnection -
remoteAddress
-
localAddress
-
reliableChannel
protected tel.schich.libdatachannel.DataChannel reliableChannel -
unreliableChannel
protected tel.schich.libdatachannel.DataChannel unreliableChannel -
pendingWrites
-
open
protected volatile boolean open
-
-
Constructor Details
-
NetherNetChannel
protected NetherNetChannel(io.netty.channel.Channel parent, InetSocketAddress remote, InetSocketAddress local)
-
-
Method Details
-
setDataChannels
public void setDataChannels(tel.schich.libdatachannel.DataChannel reliable, tel.schich.libdatachannel.DataChannel unreliable) -
doWrite
- Specified by:
doWritein classio.netty.channel.AbstractChannel- Throws:
Exception
-
doRegister
- Overrides:
doRegisterin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doDeregister
- Overrides:
doDeregisterin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doBind
- Specified by:
doBindin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doDisconnect
- Specified by:
doDisconnectin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doClose
- Specified by:
doClosein classio.netty.channel.AbstractChannel- Throws:
Exception
-
closeWebRTC
protected void closeWebRTC()Closes the data channels and peer connection, dropping their listeners first. -
doBeginRead
- Specified by:
doBeginReadin classio.netty.channel.AbstractChannel- Throws:
Exception
-
isCompatible
protected boolean isCompatible(io.netty.channel.EventLoop loop) - Specified by:
isCompatiblein classio.netty.channel.AbstractChannel
-
localAddress0
- Specified by:
localAddress0in classio.netty.channel.AbstractChannel
-
remoteAddress0
- Specified by:
remoteAddress0in classio.netty.channel.AbstractChannel
-
config
public io.netty.channel.ChannelConfig config() -
isOpen
public boolean isOpen() -
isActive
public boolean isActive() -
metadata
public io.netty.channel.ChannelMetadata metadata() -
setRemoteAddress
-