2022-04-01 19:10:06 +00:00
|
|
|
#include "lpacket.h"
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
2022-06-27 23:57:00 +00:00
|
|
|
const char *laikaD_getPacketName(LAIKAPKT_ID id)
|
|
|
|
{
|
|
|
|
const char *PKTNAMES[] = {"LAIKAPKT_VARPKT",
|
|
|
|
"LAIKAPKT_HANDSHAKE_REQ",
|
|
|
|
"LAIKAPKT_HANDSHAKE_RES",
|
2022-06-30 01:31:22 +00:00
|
|
|
"LAIKAPKT_PEER_LOGIN_REQ",
|
2022-06-27 23:57:00 +00:00
|
|
|
"LAIKAPKT_PINGPONG",
|
|
|
|
"LAIKAPKT_SHELL_OPEN",
|
|
|
|
"LAIKAPKT_SHELL_CLOSE",
|
|
|
|
"LAIKAPKT_SHELL_DATA",
|
|
|
|
"LAIKAPKT_AUTHENTICATED_ADD_PEER_RES",
|
|
|
|
"LAIKAPKT_AUTHENTICATED_RMV_PEER_RES",
|
|
|
|
"LAIKAPKT_AUTHENTICATED_SHELL_OPEN_REQ"};
|
2022-04-01 19:10:06 +00:00
|
|
|
|
|
|
|
return id >= LAIKAPKT_MAXNONE ? "LAIKAPKT_UNKNOWN" : PKTNAMES[id];
|
|
|
|
}
|
|
|
|
#endif
|