-
Notifications
You must be signed in to change notification settings - Fork 2
Packet Layout
Matthias Hoste edited this page Jan 9, 2023
·
1 revision
Packet header{
4bits type;
byte connectionId;
}
If type is 1(Connection Request):
Packet data{
uint unknown(par);
uint version;
bool usePunkbuster;
uint unknown;
string password;
string modName;
}
If type is 2(Connection Accept):
Packet data{
byte connectionId;
uint timeStamp;
bool usePunkbuster;
}
If type is 3(Connection Denied):
Packet data{
uint errorCode;
}
If type is 4(Connection Acknowledge):
Packet data{
}
If type is 5(Disconnect):
Packet data{
uint reason;
}
If type is 7(Ping Request):
Packet data{
//todo
}
If type is 8(Ping Response):
Packet data{
//todo
}
If type is 15(Data):
Packet data{
6bits localPacketCounter;
6bits remotePacketCounter;
uint packetCounterCalc;
ushort packetLength;
}