op_codes.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. EQ2Emulator: Everquest II Server Emulator
  3. Copyright (C) 2007 EQ2EMulator Development Team (http://www.eq2emulator.net)
  4. This file is part of EQ2Emulator.
  5. EQ2Emulator is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. EQ2Emulator is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with EQ2Emulator. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef _OP_CODES_H
  17. #define _OP_CODES_H
  18. static const char OP_SessionRequest = 0x01;
  19. static const char OP_SessionResponse = 0x02;
  20. static const char OP_Combined = 0x03;
  21. static const char OP_SessionDisconnect = 0x05;
  22. static const char OP_KeepAlive = 0x06;
  23. static const char OP_ServerKeyRequest = 0x07;
  24. static const char OP_SessionStatResponse= 0x08;
  25. static const char OP_Packet = 0x09;
  26. static const char OP_Fragment = 0x0d;
  27. static const char OP_OutOfOrderAck = 0x11;
  28. static const char OP_Ack = 0x15;
  29. static const char OP_AppCombined = 0x19;
  30. static const char OP_OutOfSession = 0x1d;
  31. #if defined(LOGIN) || defined(CHAT)
  32. #define APP_OPCODE_SIZE 1
  33. #else
  34. #define APP_OPCODE_SIZE 2
  35. #endif
  36. #endif