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

Method toString

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

Source from the content-addressed store, hash-verified

145 std::queue<UdpPkg *> dataQueue;
146
147 std::string toString() {
148 char buf[512];
149 sprintf(buf, "S[%x %s %s s:%d q:%d syn:%s fin:%s]", TOINT(this) , sockaddrToString(toaddr).c_str(), getStatus(status), seq,
150 (int)dataQueue.size(), synTimeoutEvent.toString().c_str(), finTimeoutEvent.toString().c_str());
151 return (std::string) buf;
152 }
153 } Sender;
154
155 typedef struct Receiver {

Callers

nothing calls this directly

Calls 3

sockaddrToStringFunction · 0.85
sizeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected