Check whether RDS sockets are supported on this host.
()
| 135 | return True |
| 136 | |
| 137 | def _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 | |
| 147 | def _have_socket_alg(): |
| 148 | """Check whether AF_ALG sockets are supported on this host.""" |
no test coverage detected
searching dependent graphs…