1
0
Protocol/opcodes.go
2025-09-02 12:30:36 -05:00

25 lines
623 B
Go

package eq2net
// Login/chat use 1-byte opcodes
const AppOpcodeSize = 1
// The game uses 2-byte opcodes
const GameOpcodeSize = 2
// Protocol-level opcodes for the actual UDP stream
const (
OP_SessionRequest = 0x0001
OP_SessionResponse = 0x0002
OP_Combined = 0x0003
OP_SessionDisconnect = 0x0005
OP_KeepAlive = 0x0006
OP_SessionStatRequest = 0x0007
OP_SessionStatResponse = 0x0008
OP_Packet = 0x0009
OP_Fragment = 0x000D
OP_OutOfOrderAck = 0x0011
OP_Ack = 0x0015
OP_AppCombined = 0x0019
OP_OutOfSession = 0x001D
)