Protocol

@Singleton
class Protocol @Inject constructor(codecs: Set<PacketCodec<*>>)

Constructors

Link copied to clipboard
constructor(vararg codecs: PacketCodec<*>)
@Inject
constructor(codecs: Set<PacketCodec<*>>)

Functions

Link copied to clipboard
fun getDecoder(opcode: Int): PacketCodec<*>?
Link copied to clipboard
fun <T : Packet> getEncoder(type: Class<T>): PacketCodec<T>?