public interface ShortDatagramReceiver extends ShortDatagramProvider, Receivable
ShortDatagramReceiver
is used to receive shorts in a unified way.
The ShortDatagramProvider.readDatagram()
method provides the next available short from the
counterpart DatagramSender
; in case there is none available, then
this method halts until one is available or the ShortDatagramReceiver
is being shut down or the underlying connection is closed. The
Receivable.hasDatagram()
method returns true in case a next short can be
fetched via the ShortDatagramProvider.readDatagram()
method from the
ShortDatagramReceiver
counterpart.org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
readDatagram
hasDatagram
close, closeIn, closeQuietly, closeUnchecked
Copyright © 2018. All rights reserved.