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

Method getStatus

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

Source from the content-addressed store, hash-verified

56 } Status;
57
58 static const char* getStatus(Status s) {
59 if (s == SYN_SENT) return "SYN_SENT";
60 if (s == OPENING) return "OPENING";
61 if (s == OPEN) return "OPEN";
62 if (s == FIN_SENT) return "FIN_SENT";
63 return "ERR_STATE";
64 }
65
66 const static int PACKAGE_DATA = 1;
67 const static int PACKAGE_ACK = 2;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected