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 TypeMethodDescriptionDefaultNetworkChannel.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.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.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.DefaultNetworkChannel.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.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.chunk.defaults
Fields in eu.cloudnetservice.driver.network.chunk.defaults with type parameters of type PacketConstructor parameters in eu.cloudnetservice.driver.network.chunk.defaults with type arguments of type PacketModifierConstructorDescriptionDefaultFileChunkPacketSender(@NonNull ChunkSessionInformation sessionInformation, @NonNull InputStream source, @NonNull Consumer<Packet> packetSplitter) Constructs a new chunked packet sender for file transfer. -
Uses of Packet in eu.cloudnetservice.driver.network.chunk.defaults.builder
Fields in eu.cloudnetservice.driver.network.chunk.defaults.builder with type parameters of type PacketMethod parameters in eu.cloudnetservice.driver.network.chunk.defaults.builder with type arguments of type PacketModifier and TypeMethodDescriptionDefaultChunkedPacketSenderBuilder.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.chunk.defaults.splitter
Classes in eu.cloudnetservice.driver.network.chunk.defaults.splitter that implement interfaces with type arguments of type PacketModifier and TypeClassDescriptionfinal recordA default implementation of a chunked packet splitter, splitting each packet chunk to multiple channels.Methods in eu.cloudnetservice.driver.network.chunk.defaults.splitter with parameters of type Packet -
Uses of Packet in eu.cloudnetservice.driver.network.chunk.network
Classes in eu.cloudnetservice.driver.network.chunk.network that implement PacketModifier and TypeClassDescriptionfinal classA transfer packet that holds data about a chunk of data to transfer.Methods in eu.cloudnetservice.driver.network.chunk.network with parameters of type PacketModifier and TypeMethodDescriptionvoidChunkedPacketListener.handle(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the incoming packet. -
Uses of Packet in eu.cloudnetservice.driver.network.def
Classes in eu.cloudnetservice.driver.network.def that implement PacketModifier and TypeClassDescriptionfinal classThe packet which is used for authorization between: A wrapper and a node.final classA packet which gets sent to indicate that a channel message should get processed. -
Uses of Packet in eu.cloudnetservice.driver.network.netty
Methods in eu.cloudnetservice.driver.network.netty with parameters of type PacketModifier and TypeMethodDescriptionvoidNettyNetworkChannel.sendPacket(@NonNull Packet packet) Sends the given packet to the associated target.voidNettyNetworkChannel.sendPacket(@NonNull Packet... packets) Sends all the given packets to the associated target.voidNettyNetworkChannel.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. -
Uses of Packet in eu.cloudnetservice.driver.network.netty.client
Methods in eu.cloudnetservice.driver.network.netty.client with parameters of type PacketModifier and TypeMethodDescriptionvoidNettyNetworkClient.sendPacket(@NonNull Packet packet) Sends the given packet to the associated target.voidNettyNetworkClient.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. -
Uses of Packet in eu.cloudnetservice.driver.network.netty.codec
Subclasses with type arguments of type Packet in eu.cloudnetservice.driver.network.netty.codecModifier and TypeClassDescriptionfinal classAn internal implementation of the packet encoder used for client to server communication.Methods in eu.cloudnetservice.driver.network.netty.codec with parameters of type PacketModifier and TypeMethodDescriptionprotected io.netty5.buffer.BufferNettyPacketEncoder.allocateBuffer(@NonNull io.netty5.channel.ChannelHandlerContext ctx, @NonNull Packet msg) protected void -
Uses of Packet in eu.cloudnetservice.driver.network.netty.server
Methods in eu.cloudnetservice.driver.network.netty.server with parameters of type PacketModifier and TypeMethodDescriptionvoidNettyNetworkServer.sendPacket(@NonNull Packet packet) Sends the given packet to the associated target.voidNettyNetworkServer.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. -
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. -
Uses of Packet in eu.cloudnetservice.driver.network.protocol.defaults
Fields in eu.cloudnetservice.driver.network.protocol.defaults with type parameters of type PacketModifier and TypeFieldDescriptionprotected final com.github.benmanes.caffeine.cache.Cache<UUID, CompletableFuture<Packet>> DefaultQueryPacketManager.waitingHandlersMethods in eu.cloudnetservice.driver.network.protocol.defaults that return types with arguments of type PacketModifier and TypeMethodDescriptionprotected @NonNull com.github.benmanes.caffeine.cache.RemovalListener<UUID, CompletableFuture<Packet>> DefaultQueryPacketManager.newRemovalListener()Constructs a new removal listener for the cache, completing the future of a query packet with a timeout exception when evicted from the cache.DefaultQueryPacketManager.sendQueryPacket(@NonNull Packet packet) Sends a query packet to the associated network channel, automatically selecting a query id for the packet and setting it.DefaultQueryPacketManager.waitingHandler(@NonNull UUID queryUniqueId) Gets and removes the waiting handler for the given query unique id.Methods in eu.cloudnetservice.driver.network.protocol.defaults with parameters of type PacketModifier and TypeMethodDescriptionbooleanDefaultPacketListenerRegistry.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.DefaultQueryPacketManager.sendQueryPacket(@NonNull Packet packet) Sends a query packet to the associated network channel, automatically selecting a query id for the packet and setting it. -
Uses of Packet in eu.cloudnetservice.driver.network.rpc.defaults.rpc
Classes in eu.cloudnetservice.driver.network.rpc.defaults.rpc that implement interfaces with type arguments of type PacketModifier and TypeClassDescription(package private) final recordThe shared mapping function between the rpc chain and default rpc handling the result of a remote code execution and mapping the result in a convenient way.Methods in eu.cloudnetservice.driver.network.rpc.defaults.rpc with parameters of type Packet -
Uses of Packet in eu.cloudnetservice.driver.network.rpc.listener
Methods in eu.cloudnetservice.driver.network.rpc.listener with parameters of type PacketModifier and TypeMethodDescriptionprivate voidRPCPacketListener.executeRPCChainStep(int chainDepth, int currentDepth, boolean resultExpected, @NonNull DataBuf content, @NonNull Packet request, @NonNull NetworkChannel channel, @Nullable Object previousMethodReturnValue) Executes the next RPC chain step of the current RPC chain.voidRPCPacketListener.handle(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the incoming packet.private voidRPCPacketListener.sendResponseData(@NonNull NetworkChannel channel, @NonNull Packet request, @NonNull DataBuf response) Sends a serialized response to given request packet into the given network channel. -
Uses of Packet in eu.cloudnetservice.driver.network.rpc.packet
Classes in eu.cloudnetservice.driver.network.rpc.packet that implement PacketModifier and TypeClassDescriptionclassThe packet used for any rpc within the CloudNet network.