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

Function sockaddrToint64

libapp2sys/src/main/cpp/util.h:161–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static int64_t sockaddrToint64(struct sockaddr_in addr) {
162 int64_t s = addr.sin_port;
163 return (s << 32) + addr.sin_addr.s_addr;
164}
165
166static const uint8_t crc4_table[16] = {0, 3, 6, 5, 12, 15, 10, 9, 11, 8, 13, 14, 7, 4, 1, 2};
167

Callers 5

processTimeoutMethod · 0.85
cleanReceiverMethod · 0.85
processReceiveMethod · 0.85
sendPackageMethod · 0.85
getSenderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected