MCPcopy Create free account
hub / github.com/assaultcube/AC / getip4

Function getip4

source/src/protocol.cpp:163–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161void putip4(vector<uchar> &p, enet_uint32 ip) { putip4_(p, ip); }
162
163enet_uint32 getip4(ucharbuf &p)
164{
165 enet_uint32 ip = p.get() | (p.get()<<8) | (p.get()<<16) | (p.get()<<24);
166 DEBUGCODE(string IP; iptoa(ip, IP));
167 DEBUGVAR(IP);
168 return ip;
169}
170
171template<class T>
172static inline void putuintn_(T &p, uint64_t val, int n)

Callers 2

parsemessagesFunction · 0.85
processFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected