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

Function _have_socket_rds

Lib/test/test_socket.py:135–143  ·  view source on GitHub ↗

Check whether RDS sockets are supported on this host.

()

Source from the content-addressed store, hash-verified

133 return True
134
135def _have_socket_rds():
136 """Check whether RDS sockets are supported on this host."""
137 try:
138 s = socket.socket(socket.PF_RDS, socket.SOCK_SEQPACKET, 0)
139 except (AttributeError, OSError):
140 return False
141 else:
142 s.close()
143 return True
144
145def _have_socket_alg():
146 """Check whether AF_ALG 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