MCPcopy Create free account
hub / github.com/ddnet/ddnet / IndexFromNetType

Function IndexFromNetType

src/engine/shared/network_stun.cpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <algorithm>
7
8static int IndexFromNetType(int NetType)
9{
10 switch(NetType)
11 {
12 case NETTYPE_IPV6:
13 return 0;
14 case NETTYPE_IPV4:
15 return 1;
16 }
17 return -1;
18}
19
20static const char *IndexToSystem(int Index)
21{

Callers 3

FeedStunServerMethod · 0.85
OnPacketMethod · 0.85
GetConnectivityMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected