Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppla/ServerStatus
/ NetComp
Function
NetComp
server/src/netban.h:6–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
#include <system.h>
5
6
inline int NetComp(const NETADDR *pAddr1, const NETADDR *pAddr2)
7
{
8
return mem_comp(pAddr1, pAddr2, pAddr1->type==NETTYPE_IPV4 ? 8 : 20);
9
}
10
11
class CNetRange
12
{
Callers
3
IsValid
Method · 0.85
NetMatch
Method · 0.85
Find
Method · 0.85
Calls
1
mem_comp
Function · 0.85
Tested by
no test coverage detected