mirror of
https://bitbucket.org/projectswg/packet-master.git
synced 2026-01-16 23:04:26 -05:00
28 lines
438 B
Java
28 lines
438 B
Java
package com.projectswg.network.packets.soe;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
import com.projectswg.network.packets.Packet;
|
|
|
|
public class KeepAlive extends Packet {
|
|
|
|
public KeepAlive() {
|
|
|
|
}
|
|
|
|
public KeepAlive(ByteBuffer data) {
|
|
decode(data);
|
|
}
|
|
|
|
public void decode(ByteBuffer data) {
|
|
data.position(2);
|
|
}
|
|
|
|
public ByteBuffer encode() {
|
|
ByteBuffer data = ByteBuffer.allocate(2);
|
|
addNetShort(data, 0x06);
|
|
return data;
|
|
}
|
|
|
|
}
|