Package emu.grasscutter.netty
Class KcpHandshaker
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.nio.AbstractNioChannel
io.netty.channel.nio.AbstractNioMessageChannel
emu.grasscutter.netty.KcpHandshaker
- All Implemented Interfaces:
io.netty.channel.Channel,io.netty.channel.ChannelOutboundInvoker,io.netty.util.AttributeMap,Comparable<io.netty.channel.Channel>
public class KcpHandshaker
extends io.netty.channel.nio.AbstractNioMessageChannel
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.channel.nio.AbstractNioChannel
io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe, io.netty.channel.nio.AbstractNioChannel.NioUnsafeNested 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 io.netty.channel.nio.AbstractNioChannel
readInterestOp -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKcpHandshaker(io.netty.channel.Channel parent, SelectableChannel ch, int readInterestOp) -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelConfigconfig()protected voiddoBind(SocketAddress localAddress) protected booleandoConnect(SocketAddress remoteAddress, SocketAddress localAddress) protected voidprotected voidprotected intdoReadMessages(List<Object> buf) protected booleandoWriteMessage(Object msg, io.netty.channel.ChannelOutboundBuffer in) booleanisActive()protected SocketAddressio.netty.channel.ChannelMetadatametadata()protected SocketAddressMethods inherited from class io.netty.channel.nio.AbstractNioMessageChannel
closeOnReadError, continueOnWriteError, continueReading, doBeginRead, doWrite, newUnsafeMethods inherited from class io.netty.channel.nio.AbstractNioChannel
clearReadPending, doClose, doDeregister, doRegister, eventLoop, isCompatible, isOpen, isReadPending, javaChannel, newDirectBuffer, newDirectBuffer, selectionKey, setReadPending, unsafeMethods 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, filterOutboundMessage, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, 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
-
Constructor Details
-
KcpHandshaker
-
-
Method Details
-
config
public io.netty.channel.ChannelConfig config() -
isActive
public boolean isActive() -
metadata
public io.netty.channel.ChannelMetadata metadata() -
doReadMessages
- Specified by:
doReadMessagesin classio.netty.channel.nio.AbstractNioMessageChannel- Throws:
Exception
-
doWriteMessage
protected boolean doWriteMessage(Object msg, io.netty.channel.ChannelOutboundBuffer in) throws Exception - Specified by:
doWriteMessagein classio.netty.channel.nio.AbstractNioMessageChannel- Throws:
Exception
-
doConnect
protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception - Specified by:
doConnectin classio.netty.channel.nio.AbstractNioChannel- Throws:
Exception
-
doFinishConnect
- Specified by:
doFinishConnectin classio.netty.channel.nio.AbstractNioChannel- Throws:
Exception
-
localAddress0
- Specified by:
localAddress0in classio.netty.channel.AbstractChannel
-
remoteAddress0
- Specified by:
remoteAddress0in classio.netty.channel.AbstractChannel
-
doBind
- Specified by:
doBindin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doDisconnect
- Specified by:
doDisconnectin classio.netty.channel.AbstractChannel- Throws:
Exception
-