2022-04-01 19:10:06 +00:00
|
|
|
#include "lpacket.h"
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
const char* laikaD_getPacketName(LAIKAPKT_ID id) {
|
|
|
|
const char *PKTNAMES[] = {
|
|
|
|
"LAIKAPKT_VARPKT",
|
|
|
|
"LAIKAPKT_HANDSHAKE_REQ",
|
|
|
|
"LAIKAPKT_HANDSHAKE_RES",
|
2022-04-13 17:19:06 +00:00
|
|
|
"LAIKAPKT_PINGPONG",
|
2022-04-01 19:10:06 +00:00
|
|
|
"LAIKAPKT_SHELL_OPEN",
|
|
|
|
"LAIKAPKT_SHELL_CLOSE",
|
|
|
|
"LAIKAPKT_SHELL_DATA",
|
2022-05-16 23:48:32 +00:00
|
|
|
"LAIKAPKT_CONTENT_NEW",
|
|
|
|
"LAIKAPKT_CONTENT_ERROR",
|
|
|
|
"LAIKAPKT_CONTENT_CHUNK",
|
2022-04-01 19:10:06 +00:00
|
|
|
"LAIKAPKT_AUTHENTICATED_HANDSHAKE_REQ",
|
|
|
|
"LAIKAPKT_AUTHENTICATED_ADD_PEER_RES",
|
|
|
|
"LAIKAPKT_AUTHENTICATED_RMV_PEER_RES",
|
2022-05-16 23:48:32 +00:00
|
|
|
"LAIKAPKT_AUTHENTICATED_SHELL_OPEN_REQ"
|
2022-04-01 19:10:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
return id >= LAIKAPKT_MAXNONE ? "LAIKAPKT_UNKNOWN" : PKTNAMES[id];
|
|
|
|
}
|
|
|
|
#endif
|