Package org.drasyl.handler.connection
package org.drasyl.handler.connection
Connection-oriented communication with peers.
-
ClassDescriptionThis exception is thrown when a SEND CALL is performed on an already opened connection.This exception is thrown when a OPEN call on an already opened connection is called.Signals that the connection is closing.This exception is thrown when a connection is closing.This exception is thrown when a
ChannelOutboundHandler.write(ChannelHandlerContext, Object, ChannelPromise)
call,ChannelOutboundHandler.read(ChannelHandlerContext)
call,ConnectionHandler.userCallStatus()
call,ChannelOutboundHandler.close(ChannelHandlerContext, ChannelPromise)
call is performed on a closed connection.Events emitted byConnectionHandler
.Exceptions thrown byConnectionHandler
.This handler provides reliable and ordered delivery of bytes between hosts.Signals that the handshake was completed successfully.This exception is thrown, when the remote peer refuses to establish a connection with us.This exception is thrown when a connection is aborted.Represents the outgoing segment queue that holds segments to be sent over a connection.Represents the receive buffer that holds incoming data received over a connection.Represents the retransmission queue that holds segments that need to be retransmitted due to timeout or loss in a connection.Message used byConnectionHandler
to provide reliable and ordered delivery of bytes between hosts.EncodesByteBuf
s toSegment
s and vice versa.Represents the send buffer that holds outgoing segments waiting to be sent over a connection.Connection states.Send Sequence Space 1 2 3 4 ----------|----------|----------|---------- SND.UNA SND.NXT SND.UNA +SND.WND 1 - old sequence numbers which have been acknowledged 2 - sequence numbers of unacknowledged data 3 - sequence numbers allowed for new data transmission 4 - future sequence numbers which are not yet allowed