Class NetherNetClientChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
org.cloudburstmc.netty.channel.nethernet.NetherNetChannel
org.cloudburstmc.netty.channel.nethernet.NetherNetClientChannel
- All Implemented Interfaces:
io.netty.channel.Channel,io.netty.channel.ChannelOutboundInvoker,io.netty.util.AttributeMap,Comparable<io.netty.channel.Channel>,org.cloudburstmc.netty.channel.TransportChannel
-
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
Fields inherited from class org.cloudburstmc.netty.channel.nethernet.NetherNetChannel
config, iceRelays, localAddress, MAX_QUEUED_BYTES, METADATA, open, peerConnection, preferProxiedAddress, reliableChannel, remoteAddress, signaledAddress, unreliableChannel -
Constructor Summary
ConstructorsConstructorDescriptionNetherNetClientChannel(NetherNetClientSignaling signaling) Creates a NetherNetClientChannel, which closes the signaling when it closes. -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable NetherNetChannel.PathA client also takes the pair's local side, which is where it ended up sending from.protected voiddoClose()booleanisActive()protected io.netty.channel.AbstractChannel.AbstractUnsafeMethods inherited from class org.cloudburstmc.netty.channel.nethernet.NetherNetChannel
activate, clearFailureReported, closeFromTransport, closePeer, closeWebRTC, config, connectionFailed, countReceived, countSent, doBeginRead, doBind, doDeregister, doDisconnect, doRegister, doWrite, filterOutboundMessage, fireActive, getPing, isCompatible, isOpen, localAddress, localAddress0, maxMessageSize, mediaAddress, metadata, readDataChannel, registerMetrics, remoteAddress, remoteAddress0, remoteMaxMessageSize, reportedAddress, sctpStats, segment, selectedPath, setDataChannels, signaledAddressMethods 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, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, 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, hasAttrMethods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isRegistered, isWritable, parent, pipeline, read, unsafeMethods inherited from interface io.netty.channel.ChannelOutboundInvoker
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
NetherNetClientChannel
Creates a NetherNetClientChannel, which closes the signaling when it closes.- Parameters:
signaling- The NetherNetClientSignaling instance for signaling.
-
-
Method Details
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceio.netty.channel.Channel- Overrides:
isActivein classNetherNetChannel
-
doClose
- Overrides:
doClosein classNetherNetChannel- Throws:
Exception
-
newUnsafe
protected io.netty.channel.AbstractChannel.AbstractUnsafe newUnsafe()- Specified by:
newUnsafein classio.netty.channel.AbstractChannel
-
adoptSelectedPath
A client also takes the pair's local side, which is where it ended up sending from.- Overrides:
adoptSelectedPathin classNetherNetChannel- Returns:
- The selected pair, or null when there is none and the addresses stay as they were
-