MCPcopy Index your code
hub / github.com/RustPython/RustPython / _have_socket_qipcrtr

Function _have_socket_qipcrtr

Lib/test/test_socket.py:155–163  ·  view source on GitHub ↗

Check whether AF_QIPCRTR sockets are supported on this host.

()

Source from the content-addressed store, hash-verified

153 return True
154
155def _have_socket_qipcrtr():
156 """Check whether AF_QIPCRTR sockets are supported on this host."""
157 try:
158 s = socket.socket(socket.AF_QIPCRTR, socket.SOCK_DGRAM, 0)
159 except (AttributeError, OSError):
160 return False
161 else:
162 s.close()
163 return True
164
165def _have_socket_vsock():
166 """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