Uses of Interface
eu.cloudnetservice.driver.network.protocol.Packet
Packages that use Packet
Package
Description
-
Uses of Packet in eu.cloudnetservice.driver.event.events.network
Fields in eu.cloudnetservice.driver.event.events.network declared as PacketModifier and TypeFieldDescriptionprivate final PacketNetworkChannelPacketReceiveEvent.packetprivate final PacketNetworkChannelPacketSendEvent.packetMethods in eu.cloudnetservice.driver.event.events.network that return PacketModifier and TypeMethodDescriptionNetworkChannelPacketReceiveEvent.packet()Get the packet which got send by the other network component.NetworkChannelPacketSendEvent.packet()Get the packet which is being sent.Constructors in eu.cloudnetservice.driver.event.events.network with parameters of type PacketModifierConstructorDescriptionNetworkChannelPacketReceiveEvent(@NonNull NetworkChannel channel, @NonNull Packet packet) Creates a new instance of this network event.NetworkChannelPacketSendEvent(@NonNull NetworkChannel channel, @NonNull Packet packet) Creates a new instance of this network event. -
Uses of Packet in eu.cloudnetservice.driver.network
Methods in eu.cloudnetservice.driver.network that return PacketModifier and TypeMethodDescriptionConverts and sends the given packet as a query into this channel, blocking the current thread until a response is available or a timeout of 30 seconds was reached.Converts and sends the given packet as a query into this channel, blocking the current thread until a response is available or a timeout of 30 seconds was reached.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.default voidDefaultNetworkComponent.sendPacket(@NonNull Packet packet) Sends the given packet to the associated target.default voidDefaultNetworkComponent.sendPacket(@NonNull Packet... packets) Sends all the given packets to the associated target.default voidDefaultNetworkComponent.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.Converts and sends the given packet as a query into this channel, blocking the current thread until a response is available or a timeout of 30 seconds was reached.Converts and sends the given packet as a query into this channel, blocking the current thread until a response is available or a timeout of 30 seconds was reached.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
Methods in eu.cloudnetservice.driver.network.chunk that return types with arguments of type PacketModifier and TypeMethodDescriptionChunkedPacketSender.packetSplitter()Get the splitter of each packet which is sent through the network.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 PacketMethods in eu.cloudnetservice.driver.network.chunk.defaults that return types with arguments of type PacketModifier and TypeMethodDescriptionDefaultFileChunkPacketSender.packetSplitter()Get the splitter of each packet which is sent through the network.Constructor 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
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 TypeClassDescriptionclassA chunked packet which gets transferred from the sender to the target each time holding necessary information for packet processing on the other side.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.voidNettyNetworkChannel.sendPacketSync(@NonNull Packet... packets) Sends all the given packets to the associated target, waiting for the packet writes to the channel to complete before resuming the current thread.NettyNetworkChannel.writePacket(@NonNull Packet packet, boolean flushAfter) Writes the given packet into the channel, calling the packet send event beforehand and not writing when the event gets cancelled by a module/plugin. -
Uses of Packet in eu.cloudnetservice.driver.network.netty.codec
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.sendPacketSync(@NonNull Packet... packets) Sends all the given packets to the associated target, waiting for the packet writes 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.sendQueryPacket(@NonNull Packet packet, @NonNull UUID queryUniqueId) Sends a query packet to the associated network channel, automatically setting the id in the packet.QueryPacketManager.waitingHandler(@NonNull UUID queryUniqueId) Gets, but does not remove the waiting handler for the given unique id.@NonNull @UnmodifiableView Map<UUID,eu.cloudnetservice.common.concurrent.Task<Packet>> QueryPacketManager.waitingHandlers()Get all registered queries which are currently waiting for a response.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.voidPacketListenerRegistry.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.default voidPacketSender.sendPacketSync(@NonNull Packet... packets) Sends all the given packets to the associated target, waiting for the packet writes 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.QueryPacketManager.sendQueryPacket(@NonNull Packet packet, @NonNull UUID queryUniqueId) Sends a query packet to the associated network channel, automatically setting the id in the packet. -
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 TypeFieldDescriptionprivate final com.github.benmanes.caffeine.cache.Cache<UUID,eu.cloudnetservice.common.concurrent.Task<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,eu.cloudnetservice.common.concurrent.Task<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.sendQueryPacket(@NonNull Packet packet, @NonNull UUID queryUniqueId) Sends a query packet to the associated network channel, automatically setting the id in the packet.DefaultQueryPacketManager.waitingHandler(@NonNull UUID queryUniqueId) Gets, but does not remove the waiting handler for the given unique id.@NonNull @UnmodifiableView Map<UUID,eu.cloudnetservice.common.concurrent.Task<Packet>> DefaultQueryPacketManager.waitingHandlers()Get all registered queries which are currently waiting for a response.Methods in eu.cloudnetservice.driver.network.protocol.defaults with parameters of type PacketModifier and TypeMethodDescriptionvoidDefaultPacketListenerRegistry.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.DefaultQueryPacketManager.sendQueryPacket(@NonNull Packet packet, @NonNull UUID queryUniqueId) Sends a query packet to the associated network channel, automatically setting the id in the packet. -
Uses of Packet in eu.cloudnetservice.driver.network.rpc.defaults.rpc
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 TypeMethodDescriptionvoidRPCPacketListener.handle(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the incoming packet. -
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.