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

Method getUidByAddress

libapp2sys/src/main/cpp/server.cpp:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19public:
20
21 int getUidByAddress(const char *ip, int port) {
22 UNUSED(ip);
23 return LocalPortCheck::getUidByPort(LocalPortCheck::UDP_PORT, port);
24 }
25
26 bool checkPermission(std::vector<std::string> manufactures, std::vector<std::string> certs, int funcid, int uid, int callertid, int64_t timestamp) {
27 pdbg("ManufacturerCoder checkPermission manufactures:%d certs:%d funcid:%d uid:%d callertid:%d timestamp:%d", TOINT(manufactures.size()), TOINT(certs.size()), funcid, uid, callertid, TOINT(timestamp/1000000L));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected