Class NetherNetServerChannel

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

public class NetherNetServerChannel extends io.netty.channel.AbstractServerChannel
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a NetherNetServerChannel.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    acceptConnection(long connectionId, String offerSdp, String remoteNetworkId)
     
    void
    acceptConnection(long connectionId, String offerSdp, String remoteNetworkId, @Nullable InetSocketAddress clientAddress)
     
    void
    acceptConnection(long connectionId, String offerSdp, String remoteNetworkId, @Nullable InetSocketAddress clientAddress, @Nullable PlayerInfo player)
     
    io.netty.channel.ChannelConfig
     
    protected void
     
    protected void
    doBind(SocketAddress localAddress)
     
    protected void
     
    boolean
     
    protected boolean
    isCompatible(io.netty.channel.EventLoop loop)
     
    boolean
     
    protected SocketAddress
     
    io.netty.channel.ChannelMetadata
     

    Methods inherited from class io.netty.channel.AbstractServerChannel

    doDisconnect, doWrite, filterOutboundMessage, newUnsafe, remoteAddress, remoteAddress0

    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, doDeregister, doRegister, doShutdownOutput, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, 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

    Methods inherited from interface io.netty.channel.Channel

    alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isRegistered, isWritable, localAddress, parent, pipeline, read, unsafe

    Methods 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, writeAndFlush

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Constructor Details

    • NetherNetServerChannel

      public NetherNetServerChannel(NetherNetServerSignaling signaling)
      Creates a NetherNetServerChannel.
      Parameters:
      signaling - The NetherNetServerSignaling instance for signaling.
  • Method Details

    • doBind

      protected void doBind(SocketAddress localAddress) throws Exception
      Specified by:
      doBind in class io.netty.channel.AbstractChannel
      Throws:
      Exception
    • acceptConnection

      public void acceptConnection(long connectionId, String offerSdp, String remoteNetworkId)
    • acceptConnection

      public void acceptConnection(long connectionId, String offerSdp, String remoteNetworkId, @Nullable InetSocketAddress clientAddress)
    • acceptConnection

      public void acceptConnection(long connectionId, String offerSdp, String remoteNetworkId, @Nullable InetSocketAddress clientAddress, @Nullable PlayerInfo player)
      Parameters:
      clientAddress - The address the peer signalled from, or null if it is not known. ICE replaces it with the negotiated pair once the connection is up, but until then it is all the child channel has to report.
    • doClose

      protected void doClose() throws Exception
      Specified by:
      doClose in class io.netty.channel.AbstractChannel
      Throws:
      Exception
    • doBeginRead

      protected void doBeginRead() throws Exception
      Specified by:
      doBeginRead in class io.netty.channel.AbstractChannel
      Throws:
      Exception
    • localAddress0

      protected SocketAddress localAddress0()
      Specified by:
      localAddress0 in class io.netty.channel.AbstractChannel
    • isCompatible

      protected boolean isCompatible(io.netty.channel.EventLoop loop)
      Specified by:
      isCompatible in class io.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()
      Specified by:
      metadata in interface io.netty.channel.Channel
      Overrides:
      metadata in class io.netty.channel.AbstractServerChannel