MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / _get_attr

Function _get_attr

tests/stun_server.py:201–205  ·  view source on GitHub ↗
(attrs, attr_type)

Source from the content-addressed store, hash-verified

199 return result
200
201def _get_attr(attrs, attr_type):
202 for t, v in attrs:
203 if t == attr_type:
204 return v
205 return None
206
207def _get_attrs(attrs, attr_type):
208 return [v for t, v in attrs if t == attr_type]

Callers 3

_check_turn_authFunction · 0.85
_handle_refresh_requestFunction · 0.85
_handle_send_indicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected