Package org.drasyl.channel
Class DrasylServerChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.AbstractServerChannel
org.drasyl.channel.DrasylServerChannel
- 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 DrasylServerChannel
extends io.netty.channel.AbstractServerChannel
A virtual 
ServerChannel used for overlay network management. This
 channel must be bind to an Identity.
 
 (Currently) only compatible with NioEventLoop.
 
 Inspired by LocalServerChannel.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class io.netty.channel.AbstractChannelio.netty.channel.AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface io.netty.channel.Channelio.netty.channel.Channel.Unsafe
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionio.netty.channel.ChannelConfigconfig()protected voidprotected voiddoBind(SocketAddress localAddress) protected voiddoClose()protected voidbooleanisActive()protected booleanisCompatible(io.netty.channel.EventLoop loop) booleanisOpen()protected DrasylAddressMethods inherited from class io.netty.channel.AbstractServerChanneldoDisconnect, doWrite, filterOutboundMessage, metadata, newUnsafe, remoteAddress, remoteAddress0Methods inherited from class io.netty.channel.AbstractChannelalloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doDeregister, 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, writeAndFlushMethods inherited from class io.netty.util.DefaultAttributeMapattr, hasAttrMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.util.AttributeMapattr, hasAttrMethods inherited from interface io.netty.channel.Channelalloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isRegistered, isWritable, localAddress, parent, pipeline, read, unsafeMethods inherited from interface io.netty.channel.ChannelOutboundInvokerbind, 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.ComparablecompareTo
- 
Constructor Details- 
DrasylServerChannelpublic DrasylServerChannel()
 
- 
- 
Method Details- 
isCompatibleprotected boolean isCompatible(io.netty.channel.EventLoop loop) - Specified by:
- isCompatiblein class- io.netty.channel.AbstractChannel
 
- 
localAddress0- Specified by:
- localAddress0in class- io.netty.channel.AbstractChannel
 
- 
doBind- Specified by:
- doBindin class- io.netty.channel.AbstractChannel
 
- 
doRegister- Overrides:
- doRegisterin class- io.netty.channel.AbstractChannel
- Throws:
- Exception
 
- 
doCloseprotected void doClose()- Specified by:
- doClosein class- io.netty.channel.AbstractChannel
 
- 
doBeginReadprotected void doBeginRead()- Specified by:
- doBeginReadin class- io.netty.channel.AbstractChannel
 
- 
configpublic io.netty.channel.ChannelConfig config()
- 
isOpenpublic boolean isOpen()
- 
isActivepublic boolean isActive()
 
-