MCPcopy Index your code
hub / github.com/python/cpython / _have_socket_qipcrtr

Function _have_socket_qipcrtr

Lib/test/test_socket.py:157–165  ·  view source on GitHub ↗

Check whether AF_QIPCRTR sockets are supported on this host.

()

Source from the content-addressed store, hash-verified

155 return True
156
157def _have_socket_qipcrtr():
158 """Check whether AF_QIPCRTR sockets are supported on this host."""
159 try:
160 s = socket.socket(socket.AF_QIPCRTR, socket.SOCK_DGRAM, 0)
161 except (AttributeError, OSError):
162 return False
163 else:
164 s.close()
165 return True
166
167def _have_socket_vsock():
168 """Check whether AF_VSOCK sockets are supported on this host."""

Callers 1

test_socket.pyFile · 0.85

Calls 2

socketMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…