Check whether AF_QIPCRTR sockets are supported on this host.
()
| 153 | return True |
| 154 | |
| 155 | def _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 | |
| 165 | def _have_socket_vsock(): |
| 166 | """Check whether AF_VSOCK sockets are supported on this host.""" |
no test coverage detected