MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / packageTypeStr

Method packageTypeStr

libapp2sys/src/main/cpp/udp.h:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 const static int PACKAGE_FIN = 5;
70
71 static const char* packageTypeStr(unsigned char t) {
72 if (t == PACKAGE_DATA) return "DATA";
73 if (t == PACKAGE_ACK) return "ACK";
74 if (t == PACKAGE_SYN) return "SYN";
75 if (t == PACKAGE_FIN) return "FIN";
76 return "ERR_TYPE";
77 }
78
79 typedef struct UdpPkg {
80 uint8_t version;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected