Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
871 B
23 lines
871 B
4 years ago
|
package org.openrs2.archive.cache
|
||
|
|
||
|
import io.netty.channel.Channel
|
||
|
import io.netty.channel.ChannelInitializer
|
||
|
import org.openrs2.protocol.Protocol
|
||
|
import org.openrs2.protocol.Rs2Decoder
|
||
|
import org.openrs2.protocol.Rs2Encoder
|
||
|
import org.openrs2.protocol.login.ClientOutOfDateCodec
|
||
|
import org.openrs2.protocol.login.InitJs5RemoteConnectionCodec
|
||
|
import org.openrs2.protocol.login.IpLimitCodec
|
||
|
import org.openrs2.protocol.login.Js5OkCodec
|
||
|
import org.openrs2.protocol.login.ServerFullCodec
|
||
|
|
||
|
public class Js5ChannelInitializer(private val handler: Js5ChannelHandler) : ChannelInitializer<Channel>() {
|
||
|
override fun initChannel(ch: Channel) {
|
||
|
ch.pipeline().addLast(
|
||
|
Rs2Encoder(Protocol(InitJs5RemoteConnectionCodec)),
|
||
|
Rs2Decoder(Protocol(Js5OkCodec, ClientOutOfDateCodec, IpLimitCodec, ServerFullCodec)),
|
||
|
handler
|
||
|
)
|
||
|
}
|
||
|
}
|