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

Function _have_socket_rds

Lib/test/test_socket.py:137–145  ·  view source on GitHub ↗

Check whether RDS sockets are supported on this host.

()

Source from the content-addressed store, hash-verified

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…