Check whether RDS sockets are supported on this host.
()
| 133 | return True |
| 134 | |
| 135 | def _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 | |
| 145 | def _have_socket_alg(): |
| 146 | """Check whether AF_ALG sockets are supported on this host.""" |
no test coverage detected