MCPcopy Create free account
hub / github.com/HackWebRTC/webrtc / PackAddressForNAT

Function PackAddressForNAT

rtc_base/nat_socket_factory.cc:24–45  ·  view source on GitHub ↗

Packs the given socketaddress into the buffer in buf, in the quasi-STUN format that the natserver uses. Returns 0 if an invalid address is passed.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

OnExternalUDPPacketMethod · 0.85
SendToMethod · 0.85
SendConnectRequestMethod · 0.85

Calls 5

HostToNetwork16Function · 0.85
familyMethod · 0.80
ipv4_addressMethod · 0.80
ipv6_addressMethod · 0.80
portMethod · 0.45

Tested by

no test coverage detected