Uses of Interface
eu.cloudnetservice.driver.network.protocol.Packet
Packages that use Packet
Package
Description
-
Uses of Packet in eu.cloudnetservice.driver.network
Methods in eu.cloudnetservice.driver.network that return types with arguments of type PacketModifier and TypeMethodDescriptionNetworkChannel.sendQueryAsync(@NonNull Packet packet) Converts and sends the given packet as a query into this channel, returning a future either completed with the response to the query or an exception if no response to the packet was received in time.Methods in eu.cloudnetservice.driver.network with parameters of type PacketModifier and TypeMethodDescriptionbooleanNetworkChannelHandler.handlePacketReceive(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the receive of a packet on the channel this handler is bound to.NetworkChannel.sendQueryAsync(@NonNull Packet packet) Converts and sends the given packet as a query into this channel, returning a future either completed with the response to the query or an exception if no response to the packet was received in time. -
Uses of Packet in eu.cloudnetservice.driver.network.chunk
Method parameters in eu.cloudnetservice.driver.network.chunk with type arguments of type PacketModifier and TypeMethodDescriptionChunkedPacketSender.Builder.packetSplitter(@NonNull Consumer<Packet> splitter) Sets the handler and processor of each packet which will be sent during the chunked data transfer. -
Uses of Packet in eu.cloudnetservice.driver.network.protocol
Classes in eu.cloudnetservice.driver.network.protocol that implement PacketModifier and TypeClassDescriptionclassThe default implementation of a packet.(package private) final classRepresents a packet with no content in it, throwing an exception when trying to construct a response for or trying to read from.Methods in eu.cloudnetservice.driver.network.protocol that return PacketModifier and TypeMethodDescriptionBasePacket.constructResponse(@NonNull DataBuf content) Constructs a new packet as a response to this packet.EmptyPacket.constructResponse(@NonNull DataBuf content) Constructs a new packet as a response to this packet.Packet.constructResponse(@NonNull DataBuf content) Constructs a new packet as a response to this packet.Packet.empty()Get a jvm static implementation of a packet which holds no content and is designed to catch read/write activity on those packets by throwing an exception.Methods in eu.cloudnetservice.driver.network.protocol that return types with arguments of type PacketModifier and TypeMethodDescriptionQueryPacketManager.sendQueryPacket(@NonNull Packet packet) Sends a query packet to the associated network channel, automatically selecting a query id for the packet and setting it.QueryPacketManager.waitingHandler(@NonNull UUID queryUniqueId) Gets and removes the waiting handler for the given query unique id.Methods in eu.cloudnetservice.driver.network.protocol with parameters of type PacketModifier and TypeMethodDescriptionvoidPacketListener.handle(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the incoming packet.booleanPacketListenerRegistry.handlePacket(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles an incoming packets and post this to all listeners which are registered to the channel the packet was sent to.voidPacketSender.sendPacket(@NonNull Packet packet) Sends the given packet to the associated target.default voidPacketSender.sendPacket(@NonNull Packet... packets) Sends all the given packets to the associated target.voidPacketSender.sendPacketSync(@NonNull Packet packet) Sends the given packet to the associated target, waiting for the packet write to the channel to complete before resuming the current thread.QueryPacketManager.sendQueryPacket(@NonNull Packet packet) Sends a query packet to the associated network channel, automatically selecting a query id for the packet and setting it.