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

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

There is a newer version: 1.6.5
Show 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.
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface PacketId {

    byte value() default 0;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy