Add LoginKickPacket
This commit is contained in:
1 parent
67bfcf3c76
commit
c16c68f248
3 files changed
+122
No files matched your search
@@ -54,4 +54,15 @@ fun ByteBuf.writeIpLE(ipAddress: IPAddress) {
|
||||
writeByte(6)
|
||||
writeBytes(ipAddress.toArray())
|
||||
}
|
||||
}
|
||||
|
||||
fun ByteBuf.readIpRangeLE(): Pair<IPAddress, IPAddress> {
|
||||
val start = readIpLE()
|
||||
val end = readIpLE()
|
||||
return Pair(start, end)
|
||||
}
|
||||
|
||||
fun ByteBuf.writeIpRangeLE(start: IPAddress, end: IPAddress) {
|
||||
writeIpLE(start)
|
||||
writeIpLE(end)
|
||||
}
|
||||
Reference in new issue
Block a user