All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.datasecs.hydra.shared.protocol.packets.PacketId Maven / Gradle / Ivy

The newest version!
package de.datasecs.hydra.shared.protocol.packets;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created with love by DataSecs on 29.09.2017.
 *
 * The PacketId annotation is used to mark packets with an id in the protocol of Hydra.
 * By giving the packet an id, it is possible to distinguish the packets when serializing and deserializing them.
 * 
* For an example of how to work with the packet id annotation, visit the * client example * or the server example. */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface PacketId { byte value() default 0; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy